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

throw more informative error if only 1 document passed #21

Open
AdamSpannbauer opened this issue Sep 13, 2019 · 0 comments
Open

throw more informative error if only 1 document passed #21

AdamSpannbauer opened this issue Sep 13, 2019 · 0 comments

Comments

@AdamSpannbauer
Copy link
Owner

put a stopifnot(length(text) > 1) in the best place

currently inputting 1 doc throws exception below, which isnt too helpful to uncover the actual issue

Only one sentence had nonzero tfidf scores.  Similarities would return as NaN
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