Skip to content
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

Cached implementation for GetLetters API #190

Open
arcturusannamalai opened this issue Nov 23, 2019 · 1 comment
Open

Cached implementation for GetLetters API #190

arcturusannamalai opened this issue Nov 23, 2019 · 1 comment
Assignees

Comments

@arcturusannamalai
Copy link
Collaborator

We may repeatedly access letter form of words. In such cases we need to avoid recomputing and use the Cached API.

Resolution of this issue provides a CachedGetLetters mixin.

@arcturusannamalai
Copy link
Collaborator Author

All these uses can be cached within spell checker:

dom.py:26: self.letters = utf8.get_letters(word)
heuristics.py:12:def get_letters(word):
heuristics.py:16: chars = utf8.get_letters(word)
heuristics.py:36: chars = get_letters(word)
heuristics.py:87: chars = get_letters(word)
heuristics.py:109: chars = get_letters(word)
morphology.py:42: word_lett = utf8.get_letters(word)
morphology.py:50: #print(itr,utf8.get_letters(suffix))
morphology.py:54: #print('L-match-->',utf8.get_letters(longest_match))
morphology.py:59: for itr in range(len(utf8.get_letters(longest_match))):
morphology.py:84: word_lett = utf8.get_letters(word)
morphology.py:173: print(utf8.get_letters(w),'->',rval[1])
scoring.py:107: letters = utf8.get_letters(word)
suggestions.py:9:from tamil.utf8 import tamil_letters, get_letters, mei_letters, agaram_letters, sanskrit_letters,
suggestions.py:17: wordL = get_letters(word)
typographical.py:14:from tamil.utf8 import get_letters_elementary, pulli_symbols

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant