You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature you are interested in and your specific question(s):
I'm studying Word Segmentation of PyCantonese (https://pycantonese.org/word_segmentation.html), does the function return also the start & end position of the vocabulary?
What you are trying to accomplish with this feature or functionality:
I would like to achieve:
import pycantonese
from pycantonese.word_segmentation import Segmenter
segmenter = Segmenter()
result = pycantonese.segment("廣東話容唔容易學?", cls=segmenter)
print(result)
Current result:
['廣東話', '容', '唔', '容易', '學', '?']
Would like to have the following result (with the start & end position):
Feature you are interested in and your specific question(s):
I'm studying Word Segmentation of PyCantonese (https://pycantonese.org/word_segmentation.html), does the function return also the start & end position of the vocabulary?
What you are trying to accomplish with this feature or functionality:
I would like to achieve:
Current result:
Would like to have the following result (with the start & end position):
Thanks.
The text was updated successfully, but these errors were encountered: