返回
Text mining with n-gram variables
DOI:10.1177/1536867X1701700406.png)
摘要
En 中文
Text mining is the process of turning free text into numerical variables and then analyzing them with statistical techniques. We introduce the command ngram, which implements the most common approach to text mining, the bag of words. An n-gram is a contiguous sequence of words in a text. Broadly speaking, ngram creates hundreds or thousands of variables, each recording how often the corresponding n-gram occurs in a given text. This is more useful than it sounds. We illustrate ngram with the categorization of text answers from two open-ended questions.
Keyword:
st0502
ngram
bag of words
sets of words
unigram
gram
statistical learning
machine learning
期刊
S
IF:
2.4
论文数:
1.2K
被引数:
8.4K

