Class IOUtils
- java.lang.Object
-
- de.julielab.jcore.consumer.cas2conll.IOUtils
-
public class IOUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description IOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidarraylist_to_file(java.util.ArrayList array, java.io.File file)Generate File form ArrayListstatic java.util.ArrayList<java.lang.String>file_to_arraylist(java.io.File file)Generate ArrayList from Filestatic java.util.HashMapfile_to_hashmapKeys(java.io.File file)static org.apache.uima.cas.text.AnnotationFSfindCoverFS(org.apache.uima.cas.CAS aCAS, org.apache.uima.cas.text.AnnotationFS annot, org.apache.uima.cas.Type coverFsType)Michael Scor implementation Finds the covering annotation of the specified coverFSType for the given annotation.static voidhashmapKeys_to_file(java.util.HashMap array, java.io.File file)Generate File form ArrayList
-
-
-
Method Detail
-
file_to_arraylist
public static java.util.ArrayList<java.lang.String> file_to_arraylist(java.io.File file) throws java.io.IOExceptionGenerate ArrayList from File- Parameters:
file-- Returns:
- Throws:
java.io.IOException
-
arraylist_to_file
public static void arraylist_to_file(java.util.ArrayList array, java.io.File file) throws java.io.IOExceptionGenerate File form ArrayList- Parameters:
array-file-- Throws:
java.io.IOException
-
hashmapKeys_to_file
public static void hashmapKeys_to_file(java.util.HashMap array, java.io.File file) throws java.io.IOExceptionGenerate File form ArrayList- Parameters:
array-file-- Throws:
java.io.IOException
-
file_to_hashmapKeys
public static java.util.HashMap file_to_hashmapKeys(java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
findCoverFS
public static org.apache.uima.cas.text.AnnotationFS findCoverFS(org.apache.uima.cas.CAS aCAS, org.apache.uima.cas.text.AnnotationFS annot, org.apache.uima.cas.Type coverFsType)Michael Scor implementation Finds the covering annotation of the specified coverFSType for the given annotation.- Parameters:
aCAS- a CAS to search inannot- current annotationcoverFsType- covering annotation type to search for- Returns:
- returns the covering annotation FS or null if the covering annotation was not found.
-
-