@MetaInfServices(value=CorpusFormat.class) public class POSTrainFormat extends FileBasedFormat
Constructor and Description |
---|
POSTrainFormat() |
Modifier and Type | Method and Description |
---|---|
boolean |
isOnePerLine()
Is one per line boolean.
|
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
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 exceptionpublic boolean isOnePerLine()
CorpusFormat
Copyright © 2016. All rights reserved.