public class OnlineIndexer extends AbstractIndexer
The class is designed for indexing in computer memory especially for small document set when writing to disk is not necessary.
Copyright: Copyright (c) 2005
Company: IST, Drexel University
arrSections, enable_AllSection, initialized, relationSupported| Constructor and Description |
|---|
OnlineIndexer(ConceptExtractor ce,
boolean useConcept) |
OnlineIndexer(TripleExtractor te,
boolean useConcept) |
| 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) |
IRDocIndexList |
getDocIndexList() |
SimpleElementList |
getDocKeyList() |
IntSparseMatrix |
getDocRelationMatrix() |
IntSparseMatrix |
getDocTermMatrix() |
IRCollection |
getIRCollection() |
IRRelationIndexList |
getRelationIndexList() |
SimplePairList |
getRelationKeyList() |
protected String |
getRemainingSections(Article paper) |
IRTermIndexList |
getTermIndexList() |
SimpleElementList |
getTermKeyList() |
boolean |
indexed(String docKey) |
protected void |
initDocIndexing() |
protected void |
initIndex() |
protected void |
initSectionWrite(IRSection section) |
boolean |
isRelationSupported() |
boolean |
screenArticleContent(boolean useTitle,
boolean useAbstract,
boolean useBody,
boolean useMeta) |
protected boolean |
setDoc(String docKey) |
void |
setMinArticleSize(int minSize) |
protected void |
write(int sectionID,
ArrayList conceptList) |
protected void |
write(int sectionID,
ArrayList conceptList,
ArrayList relationList) |
addSection, getSection, index, initialize, setLog, writeLogpublic OnlineIndexer(TripleExtractor te, boolean useConcept)
public OnlineIndexer(ConceptExtractor ce, boolean useConcept)
public void close()
Indexerpublic boolean isRelationSupported()
public boolean indexed(String docKey)
docKey - the unique document entry numberpublic void setMinArticleSize(int minSize)
public boolean screenArticleContent(boolean useTitle,
boolean useAbstract,
boolean useBody,
boolean useMeta)
public IRTermIndexList getTermIndexList()
public IRRelationIndexList getRelationIndexList()
public IRDocIndexList getDocIndexList()
public SimpleElementList getDocKeyList()
public SimpleElementList getTermKeyList()
public SimplePairList getRelationKeyList()
public IntSparseMatrix getDocTermMatrix()
public IntSparseMatrix getDocRelationMatrix()
public IRCollection getIRCollection()
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 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 initSectionWrite(IRSection section)
initSectionWrite in class AbstractIndexerprotected void initIndex()
initIndex in class AbstractIndexerprotected boolean setDoc(String docKey)
setDoc in class AbstractIndexerCopyright © 2018 JULIE Lab, Germany. All rights reserved.