Skip to content

Instantly share code, notes, and snippets.

@nosada
Last active Aug 29, 2015
Embed
What would you like to do?
patch for cabocha-0.68/python/test.py
--- 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