@MetaInfServices(value=CorpusFormat.class) public class CONLLFormat extends FileBasedFormat
Modifier and Type | Class and Description |
---|---|
static class |
CONLLFormat.FieldType |
Constructor and Description |
---|
CONLLFormat() |
Modifier and Type | Method and Description |
---|---|
String |
name()
Name string.
|
Iterable<Document> |
read(com.davidbracewell.io.resource.Resource resource,
DocumentFactory documentFactory)
Read iterable.
|
void |
write(com.davidbracewell.io.resource.Resource resource,
Document document)
Write void.
|
create, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
extension, isOnePerLine
public Iterable<Document> read(com.davidbracewell.io.resource.Resource resource, DocumentFactory documentFactory) throws IOException
CorpusFormat
resource
- the resourcedocumentFactory
- the document factoryIOException
- the iO exceptionpublic String name()
CorpusFormat
public void write(@NonNull com.davidbracewell.io.resource.Resource resource, @NonNull Document document) throws IOException
CorpusFormat
write
in interface CorpusFormat
write
in class FileBasedFormat
resource
- the resourcedocument
- the documentIOException
- the iO exceptionCopyright © 2016. All rights reserved.