
it.unitn.disi.nlptools.NLPTools 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.nlptools;
import it.unitn.disi.common.components.Configurable;
import it.unitn.disi.common.components.ConfigurableException;
import java.io.File;
import java.util.Properties;
/**
* Provides processing of short labels.
*
* @author Aliaksandr Autayeu
*/
public class NLPTools extends Configurable implements INLPTools {
public static final String DEFAULT_CONFIG_FILE_NAME = ".." + File.separator + "conf" + File.separator + "nlptools.properties";
public static final String PIPELINE_CLASS_KEY = "NLPPipeline";
public NLPTools() {
super();
}
/**
* Constructor class with initialization.
*
* @param propFileName the name of the properties file
* @throws ConfigurableException ConfigurableException
*/
public NLPTools(String propFileName) throws ConfigurableException {
this();
setProperties(propFileName);
}
/**
* Constructor class with initialization.
*
* @param properties the properties
* @throws ConfigurableException ConfigurableException
*/
public NLPTools(Properties properties) throws ConfigurableException {
this();
setProperties(properties);
}
public ILabelPipeline getPipeline() throws ConfigurableException {
ILabelPipeline pipeline = null;
pipeline = (ILabelPipeline) configureComponent(pipeline, new Properties(), properties, "NLP Pipeline", PIPELINE_CLASS_KEY, ILabelPipeline.class);
return pipeline;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy