public abstract class AbstractSentenceIndexer extends Object implements Indexer
The abstract indexder for sentence level indexing
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
initialized |
protected DocumentParser |
parser |
| Constructor and Description |
|---|
AbstractSentenceIndexer(DocumentParser parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method releases occupied resources.
|
protected Document |
getDocument(Article article) |
int |
getMinSentenceLength() |
protected String |
getSentenceKey(String docKey,
int sentIndex) |
boolean |
index(Article article)
An article has many sections such as title, abstract and body.
|
abstract boolean |
index(Sentence sent,
String sentKey) |
boolean |
indexed(String docKey) |
boolean |
screenArticleContent(boolean useTitle,
boolean useAbstract,
boolean useBody) |
void |
setLog(String logFile) |
void |
setMinSentenceLength(int minLength) |
protected void |
writeLog(String content) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitializeprotected boolean initialized
protected DocumentParser parser
public AbstractSentenceIndexer(DocumentParser parser)
public void setMinSentenceLength(int minLength)
public int getMinSentenceLength()
public boolean screenArticleContent(boolean useTitle,
boolean useAbstract,
boolean useBody)
public boolean indexed(String docKey)
public boolean index(Article article)
Indexerprotected void writeLog(String content)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.