Package lingscope.io
Class AnnotatedSentencesIO
- java.lang.Object
-
- lingscope.io.AnnotatedSentencesIO
-
public class AnnotatedSentencesIO extends Object
Reads and writes annotated sentences- Author:
- shashank
-
-
Constructor Summary
Constructors Constructor Description AnnotatedSentencesIO()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<AnnotatedSentence>read(String fileToRead)Reads and returns the list ofAnnotatedSentencefrom the given filestatic voidwrite(String fileToWrite, List<AnnotatedSentence> annotatedSentences)Writes the given list of annotated sentences to the given fileToWrite
-
-
-
Method Detail
-
read
public static List<AnnotatedSentence> read(String fileToRead)
Reads and returns the list ofAnnotatedSentencefrom the given file- Parameters:
fileToRead-- Returns:
-
write
public static void write(String fileToWrite, List<AnnotatedSentence> annotatedSentences)
Writes the given list of annotated sentences to the given fileToWrite- Parameters:
fileToWrite-annotatedSentences-
-
-