jacksonllee / pycantonese

Cantonese Linguistics and NLP
https://pycantonese.org
MIT License
354 stars 38 forks source link

Fix search issue #26

Closed chaaklau closed 3 years ago

chaaklau commented 3 years ago

This commit fixes an issue with .search() when by_tokens is set to False. TypeError: 'Token' object is not subscriptable

Thank you for submitting a pull request to improve this library! Please complete the following items (you may create the pull request first and then work through them by pushing additional commits to your branch):