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

More API for word_sent #57

Closed
rain1024 opened this issue May 4, 2017 · 0 comments
Closed

More API for word_sent #57

rain1024 opened this issue May 4, 2017 · 0 comments
Milestone

Comments

@rain1024
Copy link
Contributor

rain1024 commented May 4, 2017

#* Under The Sea version: 1.0.12

  • Python version: 2.7
  • Operating System: Windows

Description

Please add more API for word_sent

What I Did

>>> from underthesea import word_sent
>>> sentence ="Chúng ta thường nói đến Rau sạch , Rau an toàn để phân biệt với các rau bình thường bán ngoài chợ ."
>>> sent = word_sent(sentence)
>>> sent
"Chúng_ta thường nói đến Rau_sạch , Rau an_toàn để phân_biệt với các rau bình_thường bán ngoài chợ ."

Expected

>>> from underthesea import word_sent
>>> sentence ="Chúng ta thường nói đến Rau sạch , Rau an toàn để phân biệt với các rau bình thường bán ngoài chợ ."

>>>  word_sent(sentence)
["Chúng ta", "thường" "nói" "đến" "Rau sạch", ",", "Rau", "an toàn", "để", "phân biệt", "với", "các", "rau", "bình thường", "bán", "ngoài", "chợ", "."]

>>> word_sent(sentence, format="text")
"Chúng_ta thường nói đến Rau_sạch , Rau an_toàn để phân_biệt với các rau bình_thường bán ngoài chợ ."
@rain1024 rain1024 added this to the 1.1.0 milestone May 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant