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

Use a setting or an attribute for df_min #11

Open
humitos opened this issue Dec 26, 2018 · 0 comments
Open

Use a setting or an attribute for df_min #11

humitos opened this issue Dec 26, 2018 · 0 comments

Comments

@humitos
Copy link
Contributor

humitos commented Dec 26, 2018

The code is using df_min=1 at https://github.com/agjohnson/django-textclassifier/blob/master/textclassifier/classifier.py#L62.

This means that it's counting all the words that appear at least one time in the corpus. Considering that we are working with SPAM, I think it could be useful to be able to set this to 2 or 3 at least, since spam words are very repetitive.

When having a big db, this will help with #8

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