-
Notifications
You must be signed in to change notification settings - Fork 47
Dictionary lookup handler #61
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
base: master
Are you sure you want to change the base?
Dictionary lookup handler #61
Conversation
| self.pipeline_cmds[(l1, l2)] = translation.parseModeFile(mode_path) | ||
| return self.pipeline_cmds[(l1, l2)] | ||
|
|
||
| def getPairOrError(self, langpair): |
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.
Looks like this function is repeated? Maybe we should extract it BaseHandler?
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.
Um, not all classes that extend BaseHandler use it. Do you suggest putting it at the BaseHandler level so that all the classes which extend it have this method?
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.
Do you suggest putting it at the BaseHandler level so that all the classes which extend it have this method?
Yes.
| return translated.decode('utf-8') | ||
|
|
||
| @gen.coroutine | ||
| def translateNoFlush(toTranslate, commands): |
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.
This looks like the same as translateSimple?
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.
Yes indeed. I've removed it.
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.
@sushain97 , the assert proc_in == proc_out line in translateSimple which is not present in translateNoFlush gives an assertion error.
|
How do I resolve the current Travis build error? It fails with this message: |
|
Hm, I tried re-running the build to see if it was a transient error but that didn't help. @unhammer, thoughts? |
|
https://travis-ci.org/goavki/apertium-apy/jobs/264033108 says it's flake8 issues, which travis build? |
|
Ah, indeed! It looks like the transient DTD error has not subsisted after the re-build. @share-with-me check out the build output again. Thanks, @unhammer. |
b36ac97 to
51fb9c5
Compare
e88afb1 to
ee3db28
Compare
fe64bac to
f22c450
Compare
No description provided.