public class SharedDfModel extends Object implements DfModel, org.apache.uima.resource.SharedResourceObject
DfModel
.Constructor and Description |
---|
SharedDfModel() |
Modifier and Type | Method and Description |
---|---|
static void |
bindTo(org.apache.uima.analysis_engine.AnalysisEngineDescription aaed,
String pathToResource,
Object... params)
Binds a
DfModel to the given AnalysisEngineDescription . |
int |
getDf(String term)
Returns the number of documents, in which the term appears.
|
int |
getDocumentCount() |
String |
getFeaturePath() |
boolean |
getLowercase() |
void |
load(org.apache.uima.resource.DataResource aData) |
public static void bindTo(org.apache.uima.analysis_engine.AnalysisEngineDescription aaed, String pathToResource, Object... params) throws org.apache.uima.util.InvalidXMLException, MalformedURLException
DfModel
to the given AnalysisEngineDescription
. The model is
deserialized from file stream.aaed
- An aggregate AnalysisEngineDescription
. The binding does not work with
primitive descriptions.pathToResource
- The path from where the resource is loaded.params
- Optional parameters.org.apache.uima.util.InvalidXMLException
- if import resolution failedMalformedURLException
- if the specified path is invalid.public void load(org.apache.uima.resource.DataResource aData) throws org.apache.uima.resource.ResourceInitializationException
load
in interface org.apache.uima.resource.SharedResourceObject
org.apache.uima.resource.ResourceInitializationException
public int getDf(String term)
DfModel
public int getDocumentCount()
getDocumentCount
in interface DfModel
public String getFeaturePath()
getFeaturePath
in interface DfModel
public boolean getLowercase()
getLowercase
in interface DfModel
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.