Skip to content

Instantly share code, notes, and snippets.

@nosada
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nosada/9530569 to your computer and use it in GitHub Desktop.
Save nosada/9530569 to your computer and use it in GitHub Desktop.
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