Patent attributes
In one embodiment, a method includes receiving a request to generate a two-dimensional visualization of public sentiments regarding a particular subject, where the request includes an input n-gram representing the particular subject, constructing a first corpus of text by collecting text containing the input n-gram from a plurality of user-created content objects in the online social network, identifying a list of unique n-grams appearing in the first corpus of text, generating a table comprising unique n-grams in the list and their corresponding word vectors using a word embedding model, condensing the d-dimensional word vectors in the table into a two-dimensional word vectors; and sending, as a response to the request, instructions to display n-grams in the table on a two-dimensional display space, where each n-gram is placed at a location of the corresponding condensed word vector.