Relative Content

Tag Archive for dictionarysearchquantedaphrase

Reading output of tokens_compound into a dictionary

I want to use tokens_compound to examine the frequency of phrases in the documents of a corpus. I used the corpus data_corpus_inaugural for illustrative purposes and selected some ngrams to search for. I want to be able to save the output into a csv file. The code below, produces an output file, but no phrase is identified. Advice regarding how to correctly identify the frequency of phrases via a dictionary are appreciated.
\

Quanteda – reading output of tokens_compound into a dictionary

I want to use tokens_compound to examine the frequency of phrases in the documents of a corpus. I used the corpus data_corpus_inaugural for illustrative purposes and selected some ngrams to search for. I want to be able to save the output into a csv file. The code below, produces an output file, but no phrase is identified. Advice regarding how to correctly identify the frequency of phrases via a dictionary are appreciated.
\