# look up frequencies for the word "aber"
query(LCC.data, var="word", query="aber")
# show all entries with a frequency of exactly 3000 in the corpus
query(LCC.data, "freq", 3000)
# now, which words appear more than 40000 times in a million?
query(LCC.data, "pmio", 40000, "gt")
# example for a range request: words with a log10 between 2 and 2.1
# (including these two values)
query(LCC.data, "log10", c(2, 2.1))
# (and without them)
query(LCC.data, "log10", c(2, 2.1), "gt")
# example for a list of queries: get words with a frequency between
# 700 and 750 per million and at least five letters
query(LCC.data, query=list(
list(pmio=c(700,750)),
list(lttr=5, rel="ge"))
)
# get all "he" lemmata in a previously tagged text object
query(tagged.txt, "lemma", "he")
Run the code above in your browser using DataLab