Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import spacy
- >>> th_nlp = spacy.load('th')
- >>> text="คุณรักผมไหม"
- >>> a= th_nlp(text)
- >>> a
- คุณรักผมไหม
- >>> list(a)
- [คุณ, รัก, ผม, ไหม]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement