Last active
February 3, 2019 12:00
-
-
Save tnaka78/2731d40b0c19d231737612796ba01a15 to your computer and use it in GitHub Desktop.
StanfordNLP Japanese example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import stanfordnlp | |
# stanfordnlp.download('ja') | |
nlp = stanfordnlp.Pipeline(lang='ja') | |
doc = nlp(u'私は自然言語処理を勉強しています。') | |
doc.sentences[0].print_dependencies() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The result is as follows: