unDocUMeantIt / koRpus.lang.en

R package adding support for English to the koRpus package
GNU General Public License v3.0
0 stars 0 forks source link

error in koRpus and textstem while using treetagger #1

Closed oguzozbay closed 3 years ago

oguzozbay commented 3 years ago

I installed treetagger but I get an error message in both textstem and roRpus packagesfor below codes: Would you please help me.

first example:

Error for koRpus package is as below:

Error in is_grouped_df(tbl) : "TT.res" adında bir slot yok ("kRp.text" sınıfında bir nesne için) TRANSLATION in English= Error in is_grouped_df(tbl) : "TT.res" slot missing (for "kRp.text" class object)

second example

library(textstem) x <- c( 'the dirtier dog has eaten the pies', 'that shameful pooch is tricky and sneaky', "He opened and then reopened the food bag", 'There are skies of blue and red roses too!') lemma_dictionary2 <- make_lemma_dictionary(x, engine = 'treetagger')

ERROR: Error in dplyr::filter(tagged.results@TT.res[c("token", "lemma")], !lemma %in% : "TT.res" adında bir slot yok ("kRp.text" sınıfında bir nesne için)

unDocUMeantIt commented 3 years ago

it looks like the textstem package hasn't been updated yet. the TT.res slot was renamed to tokens with the release of koRpus 0.13-1 a few months ago. you might suggest to its author to use the method taggedText() to get the data frame from the tagged object, instead of addressing the slot directly. in this case, you could also use the [ method introduced in 2017:

tagged.results[c("token", "lemma")]

i'll close this issue, as there's nothing i can do about this.

oguzozbay commented 3 years ago

Thank you very much for your answer. I installed older versions of koRpus and koRpus.lang.en. Now it works. Best regards

7 Oca 2021 Per 00:18 tarihinde unDocUMeantIt notifications@github.com şunu yazdı:

Closed #1 https://github.com/unDocUMeantIt/koRpus.lang.en/issues/1.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/unDocUMeantIt/koRpus.lang.en/issues/1#event-4177057117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQ3LE33RVP3QUOLZ45JYDULSYTHTHANCNFSM4VYB6QBA .