
it.unitn.disi.annotation.data.NLPContext 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.smatch.data.trees.BaseContext;
import it.unitn.disi.smatch.data.trees.IBaseTreeStructureChangedListener;
/**
* @author Aliaksandr Autayeu
*/
public class NLPContext extends BaseContext implements INLPContext, IBaseTreeStructureChangedListener {
@Override
public INLPNode createNode() {
return new NLPNode();
}
@Override
public INLPNode createNode(String name) {
return new NLPNode(name);
}
@Override
public INLPNode createRoot() {
root = new NLPNode();
root.addTreeStructureChangedListener(this);
return root;
}
@Override
public INLPNode createRoot(String name) {
INLPNode result = createRoot();
result.getNodeData().setName(name);
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy