-
Notifications
You must be signed in to change notification settings - Fork 42
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
Spell Checker #80
Spell Checker #80
Conversation
JPJPJPOPOP
commented
Jan 7, 2018
- Deconflicts SpellChecker Handler #59
- Adds streamparser as a submodule
16c83bd
to
ac2cbda
Compare
We need to ignore streamparser. Modifying the Travis mypy command similarly should work: python/mypy#626 (comment) |
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.
Final run through. This is almost mergeable.
modeSearch.py
Outdated
'tagger': re.compile(r'(({0}(-{0})?)-tagger)\.mode'.format(lang_code)) | ||
'tagger': re.compile(r'(({0}(-{0})?)-tagger)\.mode'.format(lang_code)), | ||
'spell': re.compile(r'(({0}(-{0})?)-spell)\.mode'.format(lang_code)), | ||
'tokenise': re.compile(r'(({0}(-{0})?)-tokenise)\.mode'.format(lang_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.
add trailing comma
servlet.py
Outdated
if line.count('Corrections for'): | ||
foundSugg = True | ||
continue | ||
if foundSugg and ' ' in line: |
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.
In think it's much clear if this and below are \t
servlet.py
Outdated
|
||
result = yield translation.translateSimple(token.wordform, commands) | ||
foundSugg = False | ||
for line in result.split('\n'): |
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.
splitlines
?
servlet.py
Outdated
|
||
self.sendResponse(units) | ||
else: | ||
logging.info('Spellchecker not working') |
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.
why is this bad?? they input a wrong pair, right?
servlet.py
Outdated
@@ -1440,7 +1485,8 @@ def apply_config(args, apySection): | |||
(r'/identifyLang', IdentifyLangHandler), | |||
(r'/getLocale', GetLocaleHandler), | |||
(r'/pipedebug', PipeDebugHandler), | |||
(r'/suggest', SuggestionHandler) | |||
(r'/suggest', SuggestionHandler), | |||
(r'/speller', SpellerHandler) |
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.
Add comma at end
Can you merge in changes from master? I'd like to test this locally. |
servlet.py
Outdated
|
||
self.sendResponse(units) | ||
else: | ||
self.send_error(404, explanation="{} on spellchecker mode: {}".format('Error 404', 'Mode not installed')) |
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 is kind of an awful error message. "Spelling mode kaz" not installed" e.g. would be far better.
Hm... something seems suspect.
|
@sushain97, is there a speller mode for oci? |
Yes.
…On Jan 8, 2018 3:27 PM, "Jonathan Washington" ***@***.***> wrote:
@sushain97 <https://github.com/sushain97>, is there a speller mode for
oci?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEBEfjfIIyLDwKiNhtQHft4aJWqINA67ks5tIohVgaJpZM4RVkLR>
.
|