public class SRConceptSpaceGenerator extends Object
Constructor and Description |
---|
SRConceptSpaceGenerator(Language lang,
LocalLinkDao linkDao,
LocalPageDao pageDao) |
Modifier and Type | Method and Description |
---|---|
gnu.trove.set.TIntSet |
getConcepts() |
DaoFilter |
getFilter() |
int |
getMaxConcepts()
Simple heuristic for number of max concepts.
|
int |
getNumStopConcepts()
Ridiculous heuristic: number of stop concepts = 2 * cubed-root-of(num-articles)
For simple english (175K articles), this is about 100
For english (4M articles), this is about 300
|
static void |
main(String[] args) |
void |
setMaxConcepts(int maxConcepts) |
void |
writeConcepts(File path) |
public SRConceptSpaceGenerator(Language lang, LocalLinkDao linkDao, LocalPageDao pageDao) throws DaoException
DaoException
public DaoFilter getFilter()
public gnu.trove.set.TIntSet getConcepts() throws DaoException
DaoException
public void writeConcepts(File path) throws DaoException, IOException
DaoException
IOException
public int getNumStopConcepts()
public int getMaxConcepts()
public void setMaxConcepts(int maxConcepts)
public static void main(String[] args) throws ConfigurationException, DaoException, IOException
Copyright © 2014. All rights reserved.