Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rolling.classify: issue with training.corpus/test.corpus 'corpus cannot be used' #25

Open
meier-flo opened this issue Feb 11, 2019 · 0 comments

Comments

@meier-flo
Copy link

Hi,
I'm struggling with using an existing corpus as input parameters for rolling.classify(). After failing multiple times with my own data, I tried to simply use the Roman_de_la_Rose examples. However, loading the .txt files for the training and testing manually by using the load.corpus.and.parse() function did not work either (see image below). I'm pretty sure that the data format is the right one.

I looked at the code for the function on Github and stumbled over the following line:
if(is.list(parsed.corpus) == TRUE & length(parsed.corpus) > 1)

Maybe I'm just heavily mistaken, but shouldn't length(parsed.corpus) be only be >0 because otherwise, it would fail for single test_corpus?
Anyway would be nice to get some feedback on how to get it working, without having to transform every text into a .txt file and use the default approach (because that is working).

Thanks,
Florian

screenshot 2019-02-11 at 10 49 33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant