![JAR search and dependency download from the Maven repository](/logo.png)
org.chasen.mecab.Path Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mecab-java Show documentation
Show all versions of mecab-java Show documentation
MeCab: Yet Another Part-of-Speech and Morphological Analyzer
MeCab is a fast and customizable Japanese morphological analyzer. MeCab is designed for generic purpose and applied to variety of NLP tasks, such as Kana-Kanji conversion. MeCab provides parameter estimation functionalities based on CRFs and HMM
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 1.3.40
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.chasen.mecab;
public class Path {
private long swigCPtr;
protected boolean swigCMemOwn;
protected Path(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(Path obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
throw new UnsupportedOperationException("C++ destructor does not have public access");
}
swigCPtr = 0;
}
}
public Node getRnode() {
long cPtr = MeCabJNI.Path_rnode_get(swigCPtr, this);
return (cPtr == 0) ? null : new Node(cPtr, false);
}
public Path getRnext() {
long cPtr = MeCabJNI.Path_rnext_get(swigCPtr, this);
return (cPtr == 0) ? null : new Path(cPtr, false);
}
public Node getLnode() {
long cPtr = MeCabJNI.Path_lnode_get(swigCPtr, this);
return (cPtr == 0) ? null : new Node(cPtr, false);
}
public Path getLnext() {
long cPtr = MeCabJNI.Path_lnext_get(swigCPtr, this);
return (cPtr == 0) ? null : new Path(cPtr, false);
}
public int getCost() {
return MeCabJNI.Path_cost_get(swigCPtr, this);
}
public void setProb(float value) {
MeCabJNI.Path_prob_set(swigCPtr, this, value);
}
public float getProb() {
return MeCabJNI.Path_prob_get(swigCPtr, this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy