org.xces.graf.uima
Class GraphFactory
java.lang.Object
org.xces.graf.uima.GraphFactory
public class GraphFactory
- extends Object
Worker class used to create a graph from a uima CAS object.
- Author:
- Keith Suderman
|
Method Summary |
protected void |
checkNull(Object object,
String errorMessage)
|
org.xces.graf.api.IGraph |
createGraph(org.apache.uima.cas.CAS cas)
pass in a Cas and returns an ANC IGraph graf object |
protected int |
dummy()
|
protected String |
getFeatureValue(org.apache.uima.cas.FeatureStructure fs,
org.apache.uima.cas.Feature f)
|
protected void |
initData(org.apache.uima.cas.CAS cas)
|
protected void |
releaseData()
Clear the instance variables so the objects they point to can be garbage
collected. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UIMA_ANNOTATION_TYPE
public static final String UIMA_ANNOTATION_TYPE
- See Also:
- Constant Field Values
UIMA_STRING_TYPE
public static final String UIMA_STRING_TYPE
- See Also:
- Constant Field Values
UIMA_INTEGER_TYPE
public static final String UIMA_INTEGER_TYPE
- See Also:
- Constant Field Values
UIMA_BEGIN_FEAT
public static final String UIMA_BEGIN_FEAT
- See Also:
- Constant Field Values
UIMA_END_FEAT
public static final String UIMA_END_FEAT
- See Also:
- Constant Field Values
typeSystem
protected org.apache.uima.cas.TypeSystem typeSystem
integerT
protected org.apache.uima.cas.Type integerT
stringT
protected org.apache.uima.cas.Type stringT
beginF
protected org.apache.uima.cas.Feature beginF
endF
protected org.apache.uima.cas.Feature endF
range
protected org.xces.graf.uima.RangeFilter range
- A filter used to find existing spans in the graph.
GraphFactory
public GraphFactory()
createGraph
public org.xces.graf.api.IGraph createGraph(org.apache.uima.cas.CAS cas)
throws org.xces.graf.api.GrafException
- pass in a Cas and returns an ANC IGraph graf object
- Parameters:
cas -
- Returns:
-
- Throws:
org.xces.graf.api.GrafException
getFeatureValue
protected String getFeatureValue(org.apache.uima.cas.FeatureStructure fs,
org.apache.uima.cas.Feature f)
initData
protected void initData(org.apache.uima.cas.CAS cas)
throws org.xces.graf.api.GrafException
- Throws:
org.xces.graf.api.GrafException
releaseData
protected void releaseData()
- Clear the instance variables so the objects they point to can be garbage
collected.
dummy
protected int dummy()
checkNull
protected void checkNull(Object object,
String errorMessage)
throws org.xces.graf.api.GrafException
- Throws:
org.xces.graf.api.GrafException
Copyright © 2012 American National Corpus. All Rights Reserved.