Class ToIOBConverter
- java.lang.Object
-
- de.julielab.jcore.ae.opennlp.chunk.convert.ToIOBConverter
-
public class ToIOBConverter extends Object
This should be the better conversion algorithm. At least no single "and" will be an NP here :-)- Author:
- faessler
-
-
Constructor Summary
Constructors Constructor Description ToIOBConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconvert(File from, File to, boolean singleFile)voidconvert(InputStream input, BufferedWriter output)static voidmain(String[] args)StringmapPennTreebankToPennBioIETag(String tag)StringmapPosTagToPhraseType(String tag)StringmapTokenToPennBioIETag(String token, String originalTag)voidrepairEnvironment(List<de.julielab.jcore.ae.opennlp.chunk.convert.ToIOBConverter.ChunkRecord> sentenceRecords, int i, de.julielab.jcore.ae.opennlp.chunk.convert.ToIOBConverter.ChunkRecord cr)
-
-
-
Method Detail
-
convert
public void convert(File from, File to, boolean singleFile) throws Exception
- Throws:
Exception
-
convert
public void convert(InputStream input, BufferedWriter output) throws Exception
- Throws:
Exception
-
repairEnvironment
public void repairEnvironment(List<de.julielab.jcore.ae.opennlp.chunk.convert.ToIOBConverter.ChunkRecord> sentenceRecords, int i, de.julielab.jcore.ae.opennlp.chunk.convert.ToIOBConverter.ChunkRecord cr)
-
-