public abstract class AbstractIndexer extends Object implements Indexer
AbstractIndexer implements basic functions of interface Indexer such as building index for an article and options for section index and relation index
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected IRSection[] |
arrSections |
protected boolean |
enable_AllSection |
protected boolean |
initialized |
protected boolean |
relationSupported |
| Constructor and Description |
|---|
AbstractIndexer(boolean relationSupported) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addSection(IRSection section) |
protected abstract boolean |
extract(String text,
ArrayList conceptList) |
protected abstract boolean |
extract(String text,
ArrayList conceptList,
ArrayList relationList) |
protected abstract String |
getRemainingSections(Article article) |
protected String |
getSection(Article paper,
int sectionID) |
boolean |
index(Article article)
An article has many sections such as title, abstract and body.
|
protected abstract void |
initDocIndexing() |
void |
initialize()
It is required to call this method before calling index method to index articles.
|
protected abstract void |
initIndex() |
protected abstract void |
initSectionWrite(IRSection section) |
protected abstract boolean |
setDoc(String docKey) |
void |
setLog(String logFile) |
protected abstract void |
write(int sectionID,
ArrayList conceptList) |
protected abstract void |
write(int sectionID,
ArrayList conceptList,
ArrayList relationList) |
protected void |
writeLog(String content) |
protected IRSection[] arrSections
protected boolean relationSupported
protected boolean initialized
protected boolean enable_AllSection
protected abstract void initDocIndexing()
protected abstract boolean extract(String text, ArrayList conceptList, ArrayList relationList)
protected abstract boolean setDoc(String docKey)
protected abstract void initSectionWrite(IRSection section)
protected abstract void initIndex()
protected abstract void write(int sectionID,
ArrayList conceptList)
protected boolean addSection(IRSection section)
public void initialize()
Indexerinitialize in interface Indexerpublic boolean index(Article article)
Indexerprotected void writeLog(String content)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.