Last active
August 29, 2015 13:57
-
-
Save nosada/9530569 to your computer and use it in GitHub Desktop.
patch for cabocha-0.68/python/test.py
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
--- test.py.orig 2014-10-28 00:04:32.395997436 +0900 | |
+++ test.py 2014-10-28 00:04:55.396407628 +0900 | |
@@ -8,9 +8,9 @@ | |
sentence = "太郎はこの本を二郎を見た女性に渡した。" | |
-print c.parseToString(sentence) | |
+print(c.parseToString(sentence)) | |
tree = c.parse(sentence) | |
-print tree.toString(CaboCha.FORMAT_TREE) | |
-print tree.toString(CaboCha.FORMAT_LATTICE) | |
+print(tree.toString(CaboCha.FORMAT_TREE)) | |
+print(tree.toString(CaboCha.FORMAT_LATTICE)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment