Skip to content

Instantly share code, notes, and snippets.

@wannaphong
Created September 26, 2017 15:53
Show Gist options
  • Save wannaphong/ec1f06bd386132fc624fc60c7b2c2b0f to your computer and use it in GitHub Desktop.
Save wannaphong/ec1f06bd386132fc624fc60c7b2c2b0f to your computer and use it in GitHub Desktop.
>>> from spacy.lang.th import Thai
>>> nlp = Thai()
>>> text="คุณรักผมไหม"
>>> a = nlp(text)
>>> a
คุณรักผมไหม
>>> list(a)
[คุณ, รัก, ผม, ไหม]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment