|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xces.graf.uima.convert.CAS2Graf
public class CAS2Graf
uses App.java to utilize command line input. updated to work with masc version 3
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
|
protected org.apache.uima.collection.CollectionReader |
mCollectionReader
|
protected org.apache.uima.UimaContext |
mUimaContext
|
| Constructor Summary | |
|---|---|
CAS2Graf()
|
|
| Method Summary | |
|---|---|
void |
convert(File inputFile,
File outputDirectory,
File typeSystemFile)
Runs Graf2CAS |
protected void |
copyIntoTypeSystem(org.apache.uima.cas.CAS cas,
org.xces.graf.util.NameMap nameMap,
org.xces.graf.api.IGraph aGraph)
copies TypeSystem from CAS to the global variable Master Type System |
static String |
getContents(String file)
Returns the contents of a file in the form of a String object |
org.apache.uima.cas.CAS |
loadCasFromXMI(File inputCasFile,
File inputTypeSystemFile)
given an xmi file containing cas, places Cas in aCas |
org.apache.uima.resource.metadata.TypeSystemDescription |
loadTypeSystemFromXMI(File TypeSystemFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.slf4j.Logger logger
protected org.apache.uima.UimaContext mUimaContext
protected org.apache.uima.collection.CollectionReader mCollectionReader
| Constructor Detail |
|---|
public CAS2Graf()
| Method Detail |
|---|
public org.apache.uima.resource.metadata.TypeSystemDescription loadTypeSystemFromXMI(File TypeSystemFile)
throws org.apache.uima.util.InvalidXMLException,
IOException
org.apache.uima.util.InvalidXMLException
IOException
public org.apache.uima.cas.CAS loadCasFromXMI(File inputCasFile,
File inputTypeSystemFile)
throws org.apache.uima.resource.ResourceProcessException,
IOException,
org.apache.uima.resource.ResourceInitializationException,
ParserConfigurationException,
SAXException
aCas - inputCasFile -
org.apache.uima.resource.ResourceProcessException
IOException
org.apache.uima.resource.ResourceInitializationException
SAXException
ParserConfigurationException
public void convert(File inputFile,
File outputDirectory,
File typeSystemFile)
throws org.xces.graf.api.GrafException,
org.apache.uima.resource.ResourceInitializationException,
TypeSystemException,
org.apache.uima.resource.ResourceProcessException,
IOException,
ParserConfigurationException,
SAXException
org.xces.graf.api.GrafException
org.apache.uima.resource.ResourceInitializationException
TypeSystemException
IOException
org.apache.uima.resource.ResourceProcessException
SAXException
ParserConfigurationException
public static String getContents(String file)
throws Exception
file -
IOException
Exception
protected void copyIntoTypeSystem(org.apache.uima.cas.CAS cas,
org.xces.graf.util.NameMap nameMap,
org.xces.graf.api.IGraph aGraph)
throws TypeSystemException
cas - nameMap - aGraph -
TypeSystemException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||