unDocUMeantIt / koRpus

An R Package for Text Analysis
GNU General Public License v3.0
45 stars 6 forks source link

option lexicon #28

Closed agnesevardanega closed 3 years ago

agnesevardanega commented 3 years ago

I'm trying to apply an auxiliary lexicon (lexicon = "namefile.txt"), but there is a bug in the function (I suppose), because the path is written as follows:

C:\TreeTagger\lib/file.txt

Therefore, in Windows, when the file does exist in the folder, I receive the error;

Error in file.info(x, extra_cols = FALSE) : argomento 'filename' non valido (non valid filename).

Thank you

unDocUMeantIt commented 3 years ago

hi agnes, can you tell me which version of koRpus you are using?

agnesevardanega commented 3 years ago

Version 0.13-3, thx

(Inviato dal mio iPhone)

Il giorno 6 dic 2020, alle ore 19:36, unDocUMeantIt notifications@github.com ha scritto:

 hi agnes, can you tell me which version of koRpus you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

unDocUMeantIt commented 3 years ago

thanks for reporting this, i did find and fix an issue with lexicon files.

however, i was actually not able to replicate your problem (windows 10, using koRpus.lang.en).

could you please try to update to the develop version and try again:

devtools::install_github("unDocUMeantIt/koRpus", ref="develop")

if the problem persists, can you tell me which language package (including its version number) you are using?

agnesevardanega commented 3 years ago

I use the italian language pack, which it is actually quite old. Windows 10, me too.

I’ll try the develop version and tell you.

(Inviato dal mio iPhone)

Il giorno 6 dic 2020, alle ore 21:08, unDocUMeantIt notifications@github.com ha scritto:

 thanks for reporting this, i did find and fix an issue with lexicon files.

however, i was actually not able to replicate your problem (windows 10, using koRpus.lang.en).

could you please try to update to the develop version and try again:

devtools::install_github("unDocUMeantIt/koRpus", ref="develop") if the problem persists, can you tell me which language package (including its version number) you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

unDocUMeantIt commented 3 years ago

all language packages were updated a few weeks ago, you should probably upgrade that as well.

also, try using file.path("C:", "TreeTagger") to set the TreeTagger path.

agnesevardanega commented 3 years ago

It does work, even with “C:\TreeTagger”. Thx.

(Inviato dal mio iPhone)

Il giorno 6 dic 2020, alle ore 21:30, unDocUMeantIt notifications@github.com ha scritto:

 all language packages were updated a few weeks ago, you should probably upgrade that as well.

also, try using file.path("C:", "TreeTagger") to set the TreeTagger path.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.