public class BasicIndexer extends AbstractIndexer
BasicIndexer, providing all basic functions for indexing, can be used to index documents directly
Copyright: Copyright (c) 2005
Company: IST, Drexel University
arrSections, enable_AllSection, initialized, relationSupported| Constructor and Description |
|---|
BasicIndexer(ConceptExtractor ce,
boolean useConcept,
String indexFolder) |
BasicIndexer(ConceptExtractor ce,
String charIndexFolder,
String cptIndexFolder) |
BasicIndexer(TripleExtractor te,
boolean useConcept,
String indexFolder) |
BasicIndexer(TripleExtractor te,
String charIndexFolder,
String cptIndexFolder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method releases occupied resources.
|
protected boolean |
extract(String content,
ArrayList conceptList) |
protected boolean |
extract(String content,
ArrayList conceptList,
ArrayList relationList) |
protected String |
getRemainingSections(Article paper) |
protected String |
getSection(Article paper,
int sectionID) |
boolean |
indexed(String docKey) |
protected void |
initDocIndexing() |
protected void |
initIndex() |
protected void |
initSectionWrite(IRSection section) |
protected boolean |
setDoc(String docKey) |
void |
setMinArticleSize(int minSize) |
void |
setSectionIndexOption(boolean all,
boolean title,
boolean abt,
boolean body,
boolean meta) |
protected void |
write(int sectionID,
ArrayList conceptList) |
protected void |
write(int sectionID,
ArrayList conceptList,
ArrayList relationList) |
addSection, index, initialize, setLog, writeLogpublic BasicIndexer(TripleExtractor te, boolean useConcept, String indexFolder)
public BasicIndexer(TripleExtractor te, String charIndexFolder, String cptIndexFolder)
public BasicIndexer(ConceptExtractor ce, boolean useConcept, String indexFolder)
public BasicIndexer(ConceptExtractor ce, String charIndexFolder, String cptIndexFolder)
public void close()
Indexerpublic boolean indexed(String docKey)
docKey - the unique document entry numberpublic void setMinArticleSize(int minSize)
public void setSectionIndexOption(boolean all,
boolean title,
boolean abt,
boolean body,
boolean meta)
protected void initDocIndexing()
initDocIndexing in class AbstractIndexerprotected boolean extract(String content, ArrayList conceptList, ArrayList relationList)
extract in class AbstractIndexerprotected boolean extract(String content, ArrayList conceptList)
extract in class AbstractIndexerprotected String getSection(Article paper, int sectionID)
getSection in class AbstractIndexerprotected String getRemainingSections(Article paper)
getRemainingSections in class AbstractIndexerprotected void write(int sectionID,
ArrayList conceptList)
write in class AbstractIndexerprotected void write(int sectionID,
ArrayList conceptList,
ArrayList relationList)
write in class AbstractIndexerprotected void initIndex()
initIndex in class AbstractIndexerprotected void initSectionWrite(IRSection section)
initSectionWrite in class AbstractIndexerprotected boolean setDoc(String docKey)
setDoc in class AbstractIndexerCopyright © 2018 JULIE Lab, Germany. All rights reserved.