python - Is it possible to seperate a string into sentences using context? -
is possible seperate string multiple sentences using nlp in python string contexts.
input:
string="chinese people use social media called weibo in china same twitter."
output:
- chinese people use social media called weibo in china
- it same twitter.
or can set boundary of sentences.
i have tried using tokenization, using can seperate string punctuations, whitespace, blanklines etc.
your example can splitted in different places still giving valid sentences.
string="chinese people use social media called weibo in china same twitter."
- chinese people use social media
- chinese people use social media called weibo.
- social media called weibo in china same twitter.
- weibo in china same twitter
- china same twitter
and on ...
there's no 1 best split given example algorithm should generate valid possibilities.
Comments
Post a Comment