-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add TranslationSuggester and friends #49
Conversation
- replace Mockito with Decoy for mocking
c77f7a4
to
8f6c754
Compare
Codecov ReportAttention:
... and 2 files with indirect coverage changes 📢 Thoughts on this report? Let us know!. |
Is there a way to speed this up more? It looks very slow - list comprehension? cython? I am assuming that this will be computed many times... |
Do we need to try to convert this to C or cython code? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 29 files reviewed, 2 unresolved discussions (waiting on @johnml1135)
machine/translation/edit_distance.py
line 57 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
Is there a way to speed this up more? It looks very slow - list comprehension? cython? I am assuming that this will be computed many times...
This is a dynamic programming algorithm. Generally, the best computational complexity that you can achieve for this algorithm is O(m*n). You can make small optimizations, but not anything significant.
machine/translation/edit_distance.py
line 63 at r1 (raw file):
Previously, johnml1135 (John Lambert) wrote…
Do we need to try to convert this to C or cython code?
This method is fairly simple. I don't think that converting it to C or Cython will give us much of a boost in performance.
I'm going to go ahead and merge this in, so I can start using it in silnlp. We can defer any optimizations until we have known performance issues. |
This change is