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

udpipe_train only works for files_conllu_training in R system directory #4

Closed daboe01 closed 6 years ago

daboe01 commented 6 years ago

i was constantly getting something like "too few data for gru_parser" when trying to train from my home-directory.

copying over the conllu file to /Library/Frameworks/R.framework/Versions/3.3/Resources/library/udpipe/dummydata fixed this.

jwijffels commented 6 years ago

Can you provide reproducible code for this. This looks more like you did not provide the full path to the conll-u file.

daboe01 commented 6 years ago

you are correct. i used the tilde as a shortcut to my home directory. using the absolute path fixed this.

dselivanov commented 6 years ago

I guess we need to check that path.expand is used internally before passing paths to c++ code.