| Package | Description |
|---|---|
| com.hankcs.hanlp.corpus.document |
| Modifier and Type | Method and Description |
|---|---|
static Document |
CorpusLoader.convert2Document(File file) |
static Document |
Document.create(File file) |
static Document |
Document.create(String param) |
| Modifier and Type | Method and Description |
|---|---|
static List<Document> |
CorpusLoader.convert2DocumentList(String folderPath) |
static List<Document> |
CorpusLoader.convert2DocumentList(String folderPath,
boolean verbose)
读取整个目录中的人民日报格式语料
|
static List<Document> |
CorpusLoader.loadCorpus(String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
CorpusLoader.Handler.handle(Document document) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
CorpusLoader.saveCorpus(List<Document> documentList,
String path) |
Copyright © 2014–2021 码农场. All rights reserved.