Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. >>> import spacy
  2. >>> th_nlp = spacy.load('th')
  3. >>> text="คุณรักผมไหม"
  4. >>> a= th_nlp(text)
  5. >>> a
  6. คุณรักผมไหม
  7. >>> list(a)
  8. [คุณ, รัก, ผม, ไหม]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement