public class EngWordPairExpand extends Object implements WordPairExpand
Expanding word pair (not necessary consecutive) to noun phrase
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected IntSparseMatrix[] |
arrPairSentLeftMatrix |
protected IntSparseMatrix[] |
arrPairSentRightMatrix |
protected String |
indexFolder |
protected int |
maxSpan |
protected IntSparseMatrix |
sentMatrix |
protected double |
threshold |
protected SimpleElementList |
wordList |
| Constructor and Description |
|---|
EngWordPairExpand(int maxSpan,
String indexFolder,
double threshold) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkEndingWordValidation(String word,
int posIndex) |
protected Token |
checkSentPos(int spanFromFirstWord,
ArrayList sentList) |
protected boolean |
checkStartingWordValidation(String word,
int posIndex) |
protected boolean |
checkValidation(String word,
int posIndex) |
ArrayList |
expand(WordPairStat wordPairStat,
int span)
Expand the input word pair to a real phrase
|
protected Token |
expandSecion(int start,
int end,
int sentNum,
boolean inverse,
int direction,
ArrayList sentList) |
protected ArrayList |
getSentenceList(WordPairStat wordPairStat,
int span) |
protected String |
getWordContent(int index) |
protected IntSparseMatrix sentMatrix
protected SimpleElementList wordList
protected int maxSpan
protected String indexFolder
protected IntSparseMatrix[] arrPairSentLeftMatrix
protected IntSparseMatrix[] arrPairSentRightMatrix
protected double threshold
public EngWordPairExpand(int maxSpan,
String indexFolder,
double threshold)
public ArrayList expand(WordPairStat wordPairStat, int span)
WordPairExpandexpand in interface WordPairExpandwordPairStat - the word pair objectspan - the distance between two wordsprotected ArrayList getSentenceList(WordPairStat wordPairStat, int span)
protected Token expandSecion(int start, int end, int sentNum, boolean inverse, int direction, ArrayList sentList)
protected String getWordContent(int index)
protected boolean checkValidation(String word, int posIndex)
protected boolean checkEndingWordValidation(String word, int posIndex)
protected boolean checkStartingWordValidation(String word, int posIndex)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.