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

predict_currword() doesn't return expected results #5

Open
whitebread opened this issue Sep 26, 2016 · 1 comment
Open

predict_currword() doesn't return expected results #5

whitebread opened this issue Sep 26, 2016 · 1 comment

Comments

@whitebread
Copy link

whitebread commented Sep 26, 2016

example

models.train_models('hello there this is a test')

this should output ('is',1)

print(autocomplete.predict_currword('this',top_n=3))

actual output
[('this', 1)]
@greninja
Copy link

as far as the code on line 42 and 43 of autocomplete.py goes, it only predicts extensions of the current word and not the next word.

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

2 participants