This function can be used to pre-process and clean the documents, with the option to remove stop-words and perform language stemming or lemmatization. It can also be used to substitute words in the text and to calculate corpus statistics. In particular, the software will calculate: the number of Tokens and Types, the Type-Token Ratio, the number of Hapaxes, and the Hapax-Type Ratio.
Csv separator: specifies the separator used in the CSV file. Insert a single character without quoting.Percentage of text to retain: useful to retain only the initial part of each text document, for example, just the title and lead of online news. A value of 1 means that the full text will be analyzed; lower values indicate a lower percentage of text to analyze (e.g., 0.5 = the initial 50% of each document).Stemming or lemmatization: choose one of the two operations. Stemming and lemmatization can be skipped by selecting the appropriate option.Language for stopwords: this is used to load language-based stop-word dictionaries. Choose “SKIP” to avoid removing stop-words.Language for stemming/lemmatization: indicates the language used for stemming or lemmatization. Choose “SKIP” to avoid both operations.Custom stopwords: can be used to specify custom stopwords, i.e., words that will be ignored during the analysis. List custom stopwords separated by a comma, without quotes. Including multiple words (e.g., "formula 1") is possible. Custom stopwords cannot contain hyphens: hyphenated words are joined during the text cleaning, so write them joined (e.g., “email” instead of “e-mail”). Asterisks can be used at the end of a word or expression, indicating that it could be completed with any possible set of characters: asp* removes “aspirin” and “aspire”, and ant colon* removes “ant colony” and “ant colonies” (“ant-colony” becomes “antcolony” during the cleaning: use antcolon* to remove it). Only one asterisk can be used, at the end of the word or expression and not after a whitespace (a single “*” returns an error).Word Clusters: sometimes, it is useful to merge multiple words representing a common concept. Each concept could be represented by a set of keywords. If this is the case, you can use the cluster word substitution field to specify the words to merge. All words in a cluster will be replaced with the cluster label."cluster1":["word1","word2",..], "cluster2":["word6","word8",..],... "asp*" matches “aspirin” and “aspire”. Asterisks also work at the end of expressions of multiple words: "ant colon*" matches “ant colony”, “ant colonies” and “ant-colony”, while "ant-colon*" also matches the joined forms, such as “antcolony”. Only one asterisk can be used, at the end of the word or expression and not after a whitespace (“*” alone, “ant *” or “a*b*” return an error).Case sensitive: if selected, Word Clusters substitutions will be case sensitive.