Package | Description |
---|---|
gate | |
gate.annotation | |
gate.config | |
gate.corpora | |
gate.corpora.export | |
gate.creole | |
gate.gui | |
gate.gui.docview | |
gate.relations | |
gate.util |
Modifier and Type | Method and Description |
---|---|
static FeatureMap |
Factory.duplicate(FeatureMap fm,
Factory.DuplicationContext ctx)
Construct a feature map that is a copy of the one provided except
that any
Resource values in the map are replaced by their
duplicates. |
static FeatureMap |
Utils.featureMap(Object... values)
Create a feature map from an array of values.
|
FeatureMap |
DocumentFormat.getFeatures()
Get the feature set
|
static FeatureMap |
Factory.newFeatureMap()
Create a new FeatureMap.
|
static FeatureMap |
Utils.toFeatureMap(Map<?,?> map)
Create a feature map from an existing map (typically one that does not
itself implement FeatureMap).
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationSet.add(Integer id,
Long start,
Long end,
String type,
FeatureMap features)
Create and add an annotation with a pre-existing ID.
|
Integer |
SimpleAnnotationSet.add(Long start,
Long end,
String type,
FeatureMap features)
Create and add an annotation and return its id.
|
Integer |
SimpleAnnotationSet.add(Node start,
Node end,
String type,
FeatureMap features)
Create and add an annotation with pre-existing nodes, and return
its id.
|
static Integer |
Utils.addAnn(AnnotationSet outSet,
AnnotationSet spanSet,
String type,
FeatureMap fm)
Add a new annotation to the output annotation set outSet, spanning the same
region as spanSet, and having the given type and feature map.
|
static Integer |
Utils.addAnn(AnnotationSet outSet,
Annotation spanAnn,
String type,
FeatureMap fm)
Add a new annotation to the output annotation set outSet, covering the same
region as the annotation spanAnn, and having the given type and feature map.
|
static Integer |
Utils.addAnn(AnnotationSet outSet,
long startOffset,
long endOffset,
String type,
FeatureMap fm)
Add a new annotation to the output annotation set outSet, spanning the
given offset range, and having the given type and feature map.
|
static Resource |
Factory.createResource(String resourceClassName,
FeatureMap parameterValues)
Create an instance of a resource, and return it.
|
static Resource |
Factory.createResource(String resourceClassName,
FeatureMap parameterValues,
FeatureMap features)
Create an instance of a resource, and return it.
|
static Resource |
Factory.createResource(String resourceClassName,
FeatureMap parameterValues,
FeatureMap features,
String resourceName)
Create an instance of a resource, and return it.
|
static FeatureMap |
Factory.duplicate(FeatureMap fm,
Factory.DuplicationContext ctx)
Construct a feature map that is a copy of the one provided except
that any
Resource values in the map are replaced by their
duplicates. |
void |
CorpusExporter.export(Corpus corpus,
File file,
FeatureMap options)
Equivalent to
CorpusExporter.export(Corpus,OutputStream,FeatureMap) using a
FileOutputStream instance constructed from the File param. |
abstract void |
CorpusExporter.export(Corpus corpus,
OutputStream out,
FeatureMap options)
Exports the provided
Corpus instance to the specified
OutputStream using the specified options. |
void |
DocumentExporter.export(Document doc,
File file,
FeatureMap options)
Equivalent to
DocumentExporter.export(Document,OutputStream,FeatureMap) using a
FileOutputStream instance constructed from the File param. |
abstract void |
DocumentExporter.export(Document doc,
OutputStream out,
FeatureMap options)
Exports the provided
Document instance to the specified
OutputStream using the specified options. |
AnnotationSet |
AnnotationSet.get(String type,
FeatureMap constraints)
Select annotations by type and feature values.
|
AnnotationSet |
AnnotationSet.get(String type,
FeatureMap constraints,
Long offset)
Select annotations by type, features and offset.
|
static boolean |
Gate.getHiddenAttribute(FeatureMap fm)
Returns the value for the HIDDEN attribute of a feature map
|
void |
DocumentFormat.setFeatures(FeatureMap features)
Set the features map
|
static void |
Gate.setHiddenAttribute(FeatureMap fm,
boolean hidden)
Sets the value for the HIDDEN attribute of a feature map
|
void |
Resource.setParameterValues(FeatureMap parameters)
Sets the values for more parameters in one step.
|
boolean |
FeatureMap.subsumes(FeatureMap aFeatureMap)
Tests if this featureMap object includes aFeatureMap features.
|
boolean |
FeatureMap.subsumes(FeatureMap aFeatureMap,
Set<? extends Object> aFeatureNamesSet)
Tests if this featureMap object includes aFeatureMap but only
for the features present in the aFeatureNamesSet.
|
boolean |
FeatureMap.subsumes(Ontology ontologyLR,
FeatureMap aFeatureMap)
Tests if this featureMap object includes aFeatureMap features.
|
Modifier and Type | Method and Description |
---|---|
void |
ImmutableAnnotationSetImpl.add(Integer id,
Long start,
Long end,
String type,
FeatureMap features) |
void |
AnnotationSetImpl.add(Integer id,
Long start,
Long end,
String type,
FeatureMap features)
Create and add an annotation from database read data In this case the id is
already known being previously fetched from the database
|
Integer |
ImmutableAnnotationSetImpl.add(Long start,
Long end,
String type,
FeatureMap features) |
Integer |
AnnotationSetImpl.add(Long start,
Long end,
String type,
FeatureMap features)
Create and add an annotation and return its id
|
Integer |
ImmutableAnnotationSetImpl.add(Node start,
Node end,
String type,
FeatureMap features)
The following methods throw an exception as they try to modify the state of
the object
|
Integer |
AnnotationSetImpl.add(Node start,
Node end,
String type,
FeatureMap features)
Create and add an annotation with pre-existing nodes, and return its id.
|
Annotation |
AnnotationFactory.createAnnotationInSet(AnnotationSet set,
Integer id,
Node start,
Node end,
String type,
FeatureMap features)
Adds a new AnnotationImpl to the given set.
|
Annotation |
DefaultAnnotationFactory.createAnnotationInSet(AnnotationSet set,
Integer id,
Node start,
Node end,
String type,
FeatureMap features) |
AnnotationSet |
AnnotationSetImpl.get(String type,
FeatureMap constraints)
Select annotations by type and features
This will return an annotation set containing just those annotations of a
particular type (i.e.
|
AnnotationSet |
AnnotationSetImpl.get(String type,
FeatureMap constraints,
Long offset)
Select annotations by type, features and offset
|
void |
AnnotationImpl.setFeatures(FeatureMap features)
Set the feature set.
|
void |
CorpusAnnotationDiff.setParameterValues(FeatureMap parameters)
Sets the values for more parameters in one step.
|
Constructor and Description |
---|
AnnotationImpl(Integer id,
Node start,
Node end,
String type,
FeatureMap features)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected FeatureMap |
ConfigXmlHandler.attributeListToParameterList()
Utility method to convert the current SAX attribute list to a
FeatureMap
|
Modifier and Type | Method and Description |
---|---|
FeatureMap |
DocumentImpl.getFeatures()
Cover unpredictable Features creation
|
static FeatureMap |
DocumentStaxUtils.readFeatureMap(XMLStreamReader xsr)
Processes a GateDocumentFeatures or Annotation element to build a
feature map.
|
static FeatureMap |
DocumentStaxUtils.readXcesFeatureMap(XMLStreamReader xsr)
Processes a struct element to build a feature map.
|
Modifier and Type | Method and Description |
---|---|
static StringBuffer |
DocumentXmlUtils.featuresToXml(FeatureMap aFeatureMap,
Map<String,StringBuffer> normalizedFeatureNames)
This method saves a FeatureMap as XML elements.
|
static void |
DocumentStaxUtils.writeFeatures(FeatureMap features,
XMLStreamWriter xsw,
String namespaceURI)
Write a feature map to the given XMLStreamWriter.
|
Modifier and Type | Method and Description |
---|---|
void |
GateXMLExporter.export(Document doc,
File file,
FeatureMap options) |
void |
GateXMLExporter.export(Document doc,
OutputStream out,
FeatureMap options) |
void |
InlineXMLExporter.export(Document doc,
OutputStream out,
FeatureMap options) |
Modifier and Type | Field and Description |
---|---|
protected FeatureMap |
AbstractVisualResource.features |
Modifier and Type | Method and Description |
---|---|
FeatureMap |
ParameterList.getDefaults(List<List<Parameter>> parameters)
Get default parameter value set.
|
FeatureMap |
AbstractVisualResource.getFeatures()
Accessor for features.
|
FeatureMap |
ParameterList.getInitimeDefaults()
Get default initime parameter value set.
|
FeatureMap |
AbstractVisualResource.getInitParameterValues()
Get the current values for all this resource's registered
init-time parameters.
|
FeatureMap |
AbstractResource.getInitParameterValues()
Get the current values for all this resource's registered
init-time parameters.
|
static FeatureMap |
AbstractResource.getInitParameterValues(Resource res)
Get the current values for all of a specified resource's
registered init-time parameters.
|
static FeatureMap |
AbstractResource.getParameterValues(Resource res,
List<List<Parameter>> params)
Get the current values of the given parameters from the given
resource.
|
FeatureMap |
ParameterList.getRuntimeDefaults()
Get default runtime parameter value set.
|
FeatureMap |
AbstractProcessingResource.getRuntimeParameterValues()
Get the current values for all this resource's registered
init-time parameters.
|
static FeatureMap |
AbstractProcessingResource.getRuntimeParameterValues(Resource res)
Get the current values for all of a specified resource's
registered runtime parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractVisualResource.setFeatures(FeatureMap features)
Mutator for features
|
void |
AbstractVisualResource.setParameterValues(FeatureMap parameters)
Sets the values for more parameters in one step.
|
void |
AbstractResource.setParameterValues(FeatureMap parameters)
Sets the values for more parameters for this resource in one step.
|
static void |
AbstractResource.setParameterValues(Resource resource,
FeatureMap parameters)
Sets the values for more parameters for a resource in one step.
|
Modifier and Type | Field and Description |
---|---|
protected FeatureMap |
FeaturesSchemaEditor.features |
protected FeatureMap |
SerialDatastoreViewer.features |
Modifier and Type | Method and Description |
---|---|
FeatureMap |
FeaturesSchemaEditor.getFeatures()
Accessor for features.
|
FeatureMap |
SerialDatastoreViewer.getFeatures()
Accessor for features.
|
FeatureMap |
ResourceParametersEditor.getParameterValues()
Gets the current values for the parameters.
|
FeatureMap |
NewResourceDialog.getSelectedParameters()
Returns the selected params for the resource or null if none was selected
or the user pressed cancel
|
FeatureMap |
FeatureMapEditorDialog.showDialog()
Make this dialog visible allowing the editing of the list.
|
Modifier and Type | Method and Description |
---|---|
protected void |
FeatureMapEditorDialog.initLocalData(FeatureMap data) |
void |
FeaturesSchemaEditor.setFeatures(FeatureMap features)
Mutator for features
|
void |
SerialDatastoreViewer.setFeatures(FeatureMap features)
Mutator for features
|
void |
FeaturesSchemaEditor.setParameterValues(FeatureMap parameters)
Sets the values for more parameters in one step.
|
void |
SerialDatastoreViewer.setParameterValues(FeatureMap parameters)
Sets the values for more parameters in one step.
|
void |
FeaturesSchemaEditor.setTargetFeatures(FeatureMap features) |
protected String |
ResourceParametersEditor.textForFeatureMap(FeatureMap fm)
Get a string representation for a FeatureMap value.
|
Constructor and Description |
---|
FeatureMapEditorDialog(Component owner,
FeatureMap data)
Contructs a new FeatureMapEditorDialog.
|
Modifier and Type | Method and Description |
---|---|
void |
AnnotationStack.addAnnotation(int startOffset,
int endOffset,
String type,
FeatureMap features)
Add an annotation to the current stack row.
|
Modifier and Type | Field and Description |
---|---|
protected FeatureMap |
SimpleRelation.features |
Modifier and Type | Method and Description |
---|---|
FeatureMap |
SimpleRelation.getFeatures() |
Modifier and Type | Method and Description |
---|---|
void |
SimpleRelation.setFeatures(FeatureMap features) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleFeatureMapImpl
Simple case of features.
|
Modifier and Type | Field and Description |
---|---|
protected FeatureMap |
AbstractFeatureBearer.features
The feature set
|
Modifier and Type | Method and Description |
---|---|
FeatureMap |
FeatureBearer.getFeatures()
Get the feature set.
|
FeatureMap |
AbstractFeatureBearer.getFeatures()
Get the feature set
|
Modifier and Type | Method and Description |
---|---|
void |
FeatureBearer.setFeatures(FeatureMap features)
Set the feature set
|
void |
AbstractFeatureBearer.setFeatures(FeatureMap features)
Set the feature set
|
boolean |
SimpleFeatureMapImpl.subsumes(FeatureMap aFeatureMap)
Test if this featureMap includes all features from aFeatureMap
However, if aFeatureMap contains a feature whose value is equal to
gate.creole.ANNIEConstants.LOOKUP_CLASS_FEATURE_NAME (which is normally
"class"), then GATE will attempt to match that feature using an ontology
which it will try to retreive from a feature in both the feature map
through which this method is called and in aFeatureMap.
|
boolean |
SimpleFeatureMapImpl.subsumes(FeatureMap aFeatureMap,
Set<? extends Object> aFeatureNamesSet)
Tests if this featureMap object includes aFeatureMap but only
for the those features present in the aFeatureNamesSet.
|
boolean |
SimpleFeatureMapImpl.subsumes(Ontology ontologyLR,
FeatureMap aFeatureMap)
Tests if this featureMap object includes aFeatureMap features.
|
Copyright © 2024 GATE. All rights reserved.