Skip to content

Conversation

@eihli
Copy link
Contributor

@eihli eihli commented Dec 28, 2020

This appears to be a typo. I think the correct behavior is that GoodTuring should take into account a vocab and encoding if given.

Side note: How do you run the tests in this repo?

I tried evaluating tests/test_ngram.py in a REPL but got an error about attempted relative import with no known parent package. I tried running python -m unittest but got a ModuleNotFoundError: No module named 'librosa.core.time_frequency'. I resorted to python -c 'from numpy_ml.tests import test_ngram; test_ngram.some_test(). Noting that there's not a test for GoodTuring yet.

This appears to be a typo. I think the correct behavior is that GoodTuring should take into account a vocab and encoding if given.
@ddbourgin ddbourgin added the bug Something isn't working label Mar 5, 2021
@ddbourgin ddbourgin merged commit 9ef025f into ddbourgin:master May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants