-
-
Notifications
You must be signed in to change notification settings - Fork 10
Feature/conjugation preserving normalize for subword #35
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
Feature/conjugation preserving normalize for subword #35
Conversation
sudachitra/word_formatter.py
Outdated
} | ||
self._format = self.word_form_types[self.word_form_type] | ||
|
||
def format(self, m: Morpheme): |
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.
At this moment the format function is not very useful, it also adds to the hotpath one more Python function call which are unfortunately not free. Returning a callable instead of making this a class would be probably better.
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.
There still should be support of processing data in parallel, which probably will use PreTokenizer from SudachiPy, the fix can be delayed till then.
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.
LGTM
No description provided.