Module: Nimono::CabochaLib::ClassMethods
- Defined in:
- lib/nimono/cabocha_lib.rb
Instance Method Summary collapse
-
#cabocha_destroy(pptr) ⇒ Object
Destroy parser.
- #cabocha_library ⇒ Object
-
#cabocha_new2(opt_str) ⇒ Object
Create parser.
-
#cabocha_sparse_tostr(pptr, sptr) ⇒ Object
Create tree.
- #cabocha_sparse_totree(pptr, sptr) ⇒ Object
- #cabocha_tree_chunk(tptr, n) ⇒ Object
- #cabocha_tree_chunk_size(tptr) ⇒ Object
- #cabocha_tree_size(tptr) ⇒ Object
- #cabocha_tree_token(tptr, n) ⇒ Object
- #cabocha_tree_token_size(tptr) ⇒ Object
-
#cabocha_tree_tostr(tptr, n) ⇒ Object
def cabocha_tree_set_output_layer(tptr, n) Nimono::CabochaLib.cabocha_tree_set_output_layer(tptr, n) end.
Instance Method Details
#cabocha_destroy(pptr) ⇒ Object
Destroy parser
91 92 93 |
# File 'lib/nimono/cabocha_lib.rb', line 91 def cabocha_destroy(pptr) Nimono::CabochaLib.cabocha_destroy(pptr) end |
#cabocha_library ⇒ Object
81 82 83 |
# File 'lib/nimono/cabocha_lib.rb', line 81 def cabocha_library Nimono::CabochaLib.cabocha_library end |
#cabocha_new2(opt_str) ⇒ Object
Create parser
86 87 88 |
# File 'lib/nimono/cabocha_lib.rb', line 86 def cabocha_new2(opt_str) Nimono::CabochaLib.cabocha_new2(opt_str) end |
#cabocha_sparse_tostr(pptr, sptr) ⇒ Object
Create tree
102 103 104 |
# File 'lib/nimono/cabocha_lib.rb', line 102 def cabocha_sparse_tostr(pptr, sptr) Nimono::CabochaLib.cabocha_sparse_tostr(pptr, sptr) end |
#cabocha_sparse_totree(pptr, sptr) ⇒ Object
106 107 108 |
# File 'lib/nimono/cabocha_lib.rb', line 106 def cabocha_sparse_totree(pptr, sptr) Nimono::CabochaLib.cabocha_sparse_totree(pptr, sptr) end |
#cabocha_tree_chunk(tptr, n) ⇒ Object
151 152 153 |
# File 'lib/nimono/cabocha_lib.rb', line 151 def cabocha_tree_chunk(tptr, n) Nimono::CabochaLib.cabocha_tree_chunk(tptr, n) end |
#cabocha_tree_chunk_size(tptr) ⇒ Object
131 132 133 |
# File 'lib/nimono/cabocha_lib.rb', line 131 def cabocha_tree_chunk_size(tptr) Nimono::CabochaLib.cabocha_tree_chunk_size(tptr) end |
#cabocha_tree_size(tptr) ⇒ Object
127 128 129 |
# File 'lib/nimono/cabocha_lib.rb', line 127 def cabocha_tree_size(tptr) Nimono::CabochaLib.cabocha_tree_size(tptr) end |
#cabocha_tree_token(tptr, n) ⇒ Object
147 148 149 |
# File 'lib/nimono/cabocha_lib.rb', line 147 def cabocha_tree_token(tptr, n) Nimono::CabochaLib.cabocha_tree_token(tptr, n) end |
#cabocha_tree_token_size(tptr) ⇒ Object
135 136 137 |
# File 'lib/nimono/cabocha_lib.rb', line 135 def cabocha_tree_token_size(tptr) Nimono::CabochaLib.cabocha_tree_token_size(tptr) end |
#cabocha_tree_tostr(tptr, n) ⇒ Object
def cabocha_tree_set_output_layer(tptr, n)
Nimono::CabochaLib.cabocha_tree_set_output_layer(tptr, n)
end
123 124 125 |
# File 'lib/nimono/cabocha_lib.rb', line 123 def cabocha_tree_tostr(tptr, n) Nimono::CabochaLib.cabocha_tree_tostr(tptr, n) end |