bnosac / udpipe

R package for Tokenization, Parts of Speech Tagging, Lemmatization and Dependency Parsing Based on the UDPipe Natural Language Processing Toolkit
https://bnosac.github.io/udpipe/en
Mozilla Public License 2.0
209 stars 33 forks source link

cooccurrence method error #34

Closed fahadshery closed 5 years ago

fahadshery commented 5 years ago

Hi,

I am trying to find co-occurrence of Nouns and Adjectives. Below line executes fine:

cooc <- cooccurrence(x = subset(verbatim_tokens, upos %in% c("NOUN", "ADJ")), term = "lemma", group = c("doc_id", "paragraph_id", "sentence_id"))

When and type cooc in the console, it prints out fine and View(cooc) also works fine. But when I do head(cooc) within Rmd document it prints this weird error: Error in[.data.table(data, is_list) : i is not found in calling scope and it is not a column of type logical. When the first argument inside DT[...] is a single symbol, data.table looks for it in calling scope.

jwijffels commented 5 years ago

Can you provide a reproducible example?

jwijffels commented 5 years ago

Closing. Seems not to be an issue of udpipe but of your markdown report itself. Feel free to reopen if this is udpipe-specific.