public class StanfordPhraseAnalyzer extends BasePhraseAnalyzer
Modifier and Type | Class and Description |
---|---|
protected class |
StanfordPhraseAnalyzer.Iter |
static class |
StanfordPhraseAnalyzer.Provider |
BasePhraseAnalyzer.Entry
pageDao, phraseDao
Constructor and Description |
---|
StanfordPhraseAnalyzer(PhraseAnalyzerDao phraseDao,
org.wikibrain.core.dao.LocalPageDao pageDao,
PrunedCounts.Pruner<String> phrasePruner,
PrunedCounts.Pruner<Integer> pagePruner,
File path) |
Modifier and Type | Method and Description |
---|---|
static void |
downloadDictionaryIfNecessary(org.wikibrain.conf.Configuration conf) |
protected Iterable<BasePhraseAnalyzer.Entry> |
getCorpus(org.wikibrain.core.lang.LanguageSet langs)
Loads a single Stanford phrase file into the database.
|
describe, getDao, loadCorpus, loadFromFile, resolve, writePage, writePhrase
public StanfordPhraseAnalyzer(PhraseAnalyzerDao phraseDao, org.wikibrain.core.dao.LocalPageDao pageDao, PrunedCounts.Pruner<String> phrasePruner, PrunedCounts.Pruner<Integer> pagePruner, File path)
protected Iterable<BasePhraseAnalyzer.Entry> getCorpus(org.wikibrain.core.lang.LanguageSet langs) throws IOException, org.wikibrain.core.dao.DaoException
getCorpus
in class BasePhraseAnalyzer
IOException
org.wikibrain.core.dao.DaoException
public static void downloadDictionaryIfNecessary(org.wikibrain.conf.Configuration conf) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2018. All rights reserved.