
third_party.org.chokkan.crfsuite.Attribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcrfsuite Show documentation
Show all versions of jcrfsuite Show documentation
Jcrfsuite is a Java interface for crfsuite, a fast implementation of Conditional Random Fields,
using SWIG and class injection technique
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 2.0.4
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package third_party.org.chokkan.crfsuite;
public class Attribute {
private long swigCPtr;
protected boolean swigCMemOwn;
public Attribute(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
public static long getCPtr(Attribute obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
crfsuiteJNI.delete_Attribute(swigCPtr);
}
swigCPtr = 0;
}
}
public void setAttr(String value) {
crfsuiteJNI.Attribute_attr_set(swigCPtr, this, value);
}
public String getAttr() {
return crfsuiteJNI.Attribute_attr_get(swigCPtr, this);
}
public void setValue(double value) {
crfsuiteJNI.Attribute_value_set(swigCPtr, this, value);
}
public double getValue() {
return crfsuiteJNI.Attribute_value_get(swigCPtr, this);
}
public Attribute() {
this(crfsuiteJNI.new_Attribute__SWIG_0(), true);
}
public Attribute(String name) {
this(crfsuiteJNI.new_Attribute__SWIG_1(name), true);
}
public Attribute(String name, double val) {
this(crfsuiteJNI.new_Attribute__SWIG_2(name, val), true);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy