Skip to content

Commit

Permalink
Used getParseWithLongestRootWord.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olcay Taner YILDIZ committed Apr 9, 2020
1 parent 3b03559 commit f22f585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SpellChecker/NGramSpellChecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ def spellCheck(self, sentence: Sentence) -> Sentence:
result.addWord(Word(bestCandidate))
else:
result.addWord(word)
previousRoot = fsmParses.getFsmParse(0).getWord()
previousRoot = fsmParses.getParseWithLongestRootWord().getWord()
return result
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='NlpToolkit-SpellChecker',
version='1.0.8',
version='1.0.9',
packages=['SpellChecker'],
url='https://github.com/olcaytaner/TurkishSpellChecker-Py',
license='',
Expand Down

0 comments on commit f22f585

Please sign in to comment.