
it.unitn.disi.annotation.data.NLPNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s-match Show documentation
Show all versions of s-match Show documentation
A version of S-Match semantic matching framework for Open Data
The newest version!
package it.unitn.disi.annotation.data;
import it.unitn.disi.nlptools.data.ILabel;
import it.unitn.disi.smatch.data.trees.BaseNode;
/**
* A node with a label.
*
* @author Aliaksandr Autayeu
*/
public class NLPNode extends BaseNode implements INLPNode, INLPNodeData {
protected ILabel label;
public NLPNode() {
super();
label = null;
}
public NLPNode(String name) {
super(name);
}
public ILabel getLabel() {
return label;
}
public void setLabel(ILabel label) {
this.label = label;
}
@Override
public INLPNode createChild() {
INLPNode child = new NLPNode();
addChild(child);
return child;
}
@Override
public INLPNode createChild(String name) {
INLPNode child = new NLPNode(name);
addChild(child);
return child;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy