Browse Subject Areas

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

< Back to Article

Signs & Symptoms of Dextromethorphan Exposure from YouTube

Figure 2

Representing sentences as vectors.

The left panel shows the representation of two sentences, “Dogs run and dogs run.” and “Cats run.” as vectors. The “Dogs run” vector is twice the length of “Cats run” because each term in the former is repeated. Equation 1 illustrates how the cosine of the angle between the two vectors, , quantifies the similarity between the two sentences.

Figure 2