public class ChoiDatasetReader extends RawTextDatasetReader
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
protected static String |
SEGMENT_SPLIT |
generateUIDs, isTokenized, useFirstSentenceAsTitlelimit, randomizeDocuments| Constructor and Description |
|---|
ChoiDatasetReader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
readC99Result(Dataset dataset,
Resource path)
Read .ref/.pred files produced by C99.
|
Document |
readDocumentFromFile(Resource file)
Read a single Document from file.
|
withFirstSentenceAsTitle, withGeneratedUIDs, withTokenizedInputread, readDatasetFromDirectory, readDatasetFromDirectory, stream, streamDocumentsFromDirectory, tryReadDocumentsFromFile, withLimitNumberOfDocuments, withRandomizedDocumentsprotected static final org.slf4j.Logger log
protected static final String SEGMENT_SPLIT
public Document readDocumentFromFile(Resource file)
readDocumentFromFile in class RawTextDatasetReaderpublic static void readC99Result(Dataset dataset, Resource path) throws IOException
IOExceptionCopyright © 2019. All rights reserved.