Package lingscope.drivers
Class CueAndPosFilesMerger
- java.lang.Object
-
- lingscope.drivers.CueAndPosFilesMerger
-
public class CueAndPosFilesMerger extends Object
Merges two files, one containing pos tags and the other containing annotated cues- Author:
- shashank
-
-
Constructor Summary
Constructors Constructor Description CueAndPosFilesMerger()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)static List<AnnotatedSentence>merge(List<AnnotatedSentence> cueSentences, List<String> posSentences, boolean replaceTags)Merges the cueSentences and posSentencesstatic AnnotatedSentencemerge(AnnotatedSentence cueSentence, String posSentence, boolean replaceTags)
-
-
-
Method Detail
-
merge
public static AnnotatedSentence merge(AnnotatedSentence cueSentence, String posSentence, boolean replaceTags)
-
merge
public static List<AnnotatedSentence> merge(List<AnnotatedSentence> cueSentences, List<String> posSentences, boolean replaceTags)
Merges the cueSentences and posSentences- Parameters:
cueSentences-posSentences-replaceTags-- Returns:
-
main
public static void main(String[] args)
- Parameters:
args- 0 - cue input file 1 - pos input file 2 - replace cue with custom tag 'CUE' (true) or leave it as it is (false) 3 - merged file output path
-
-