lexicalChain
Class LexicalChain

java.lang.Object
  extended by lexicalChain.LexicalChain

public class LexicalChain
extends java.lang.Object


Field Summary
static java.lang.Integer END
           
static java.lang.String STOPWORDS
           
static java.lang.Integer USED
           
 
Constructor Summary
LexicalChain()
          Parameterless constructor, just loads ELKB and stopwords.
LexicalChain(int year)
          Deprecated.  
LexicalChain(java.lang.String fileName)
          This constructor takes a file as input and generates lexical chains out of the sentences in the file.
LexicalChain(java.lang.String fileName, int year)
          Deprecated.  
 
Method Summary
 void buildLCFinal()
          buildLCFinal: Final implementation of LexicalChain builder Attempt to build Lexical Chains a la Silber and McCoy
 void calculateHeadDistribution(java.util.TreeMap<java.lang.Integer,java.util.TreeSet<java.lang.String>> headDistri, java.lang.String word)
          calculateHeadDistribution: similar to previous method.
 void loadStopWordList(java.lang.String fname)
          Loads a stoplics from a file with the name passed as an argument.
static void main(java.lang.String[] args)
          Main method creates lexical chains of the file passed as the first argument.
 void printCandidateWords()
          printCandidateWords: method to display word & sentence line pairs contained in ASWL
 void printHeadDistri(java.util.TreeMap<?,?> headDistri)
          printHeadDistri
 void printLCFinal(java.util.Collection<MetaChain> chainSet)
          printLCFinal: method that prints a lexical chain
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STOPWORDS

public static final java.lang.String STOPWORDS
See Also:
Constant Field Values

USED

public static final java.lang.Integer USED

END

public static final java.lang.Integer END
Constructor Detail

LexicalChain

@Deprecated
public LexicalChain(int year)
Deprecated. 

Parameterless constructor, just loads ELKB and stopwords.

Parameters:
year -

LexicalChain

public LexicalChain()
Parameterless constructor, just loads ELKB and stopwords.


LexicalChain

@Deprecated
public LexicalChain(java.lang.String fileName,
                               int year)
Deprecated. 

This constructor takes a file as input and generates lexical chains out of the sentences in the file.

Parameters:
fileName -
year -

LexicalChain

public LexicalChain(java.lang.String fileName)
This constructor takes a file as input and generates lexical chains out of the sentences in the file.

Parameters:
fileName -
Method Detail

main

public static void main(java.lang.String[] args)
Main method creates lexical chains of the file passed as the first argument.

Parameters:
args -

loadStopWordList

public void loadStopWordList(java.lang.String fname)
Loads a stoplics from a file with the name passed as an argument.

Parameters:
fname -

printCandidateWords

public void printCandidateWords()
printCandidateWords: method to display word & sentence line pairs contained in ASWL


buildLCFinal

public void buildLCFinal()
buildLCFinal: Final implementation of LexicalChain builder Attempt to build Lexical Chains a la Silber and McCoy


printLCFinal

public void printLCFinal(java.util.Collection<MetaChain> chainSet)
printLCFinal: method that prints a lexical chain

Parameters:
chainSet -

calculateHeadDistribution

public void calculateHeadDistribution(java.util.TreeMap<java.lang.Integer,java.util.TreeSet<java.lang.String>> headDistri,
                                      java.lang.String word)
calculateHeadDistribution: similar to previous method. Builds a TreeSet that inidcates which Head numbers and what words are used in the text

Parameters:
headDistri -
word -

printHeadDistri

public void printHeadDistri(java.util.TreeMap<?,?> headDistri)
printHeadDistri

Parameters:
headDistri -