edu.umass.cs.mallet.projects.seg_plus_coref.condclust.tui
Class PairwiseClustererTUI

java.lang.Object
  extended byedu.umass.cs.mallet.projects.seg_plus_coref.condclust.tui.PairwiseClustererTUI

public class PairwiseClustererTUI
extends java.lang.Object

Interface to train and test a PairwiseClusterer. Uses Citeseer data. Note - to port this to Rexa, I had to bring over a few lib dependencies (secondstring, jgraph, old version of jdom, mallet-deps...)


Constructor Summary
PairwiseClustererTUI()
           
 
Method Summary
 java.util.ArrayList[] createNodesFromFiles(java.lang.String[] dirNames, IEInterface ieInterface, java.lang.String type)
          Read citation files and create nodes
 Pipe getPaperPipe(java.util.ArrayList nodes)
           
 Pipe getPipe(Classifier pairwiseClassifier)
          Create pipe for conditionalClusterer
 IEInterface loadIEInterface()
          if useCRF==true, load the CRF and create a IEInterface object to be used during coref
static void main(java.lang.String[] args)
           
static void run(java.lang.String[] args)
           
 Classifier trainPairwiseClassifier(java.util.ArrayList[] nodes, Pipe p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairwiseClustererTUI

public PairwiseClustererTUI()
Method Detail

main

public static void main(java.lang.String[] args)

run

public static void run(java.lang.String[] args)

trainPairwiseClassifier

public Classifier trainPairwiseClassifier(java.util.ArrayList[] nodes,
                                          Pipe p)

getPaperPipe

public Pipe getPaperPipe(java.util.ArrayList nodes)

getPipe

public Pipe getPipe(Classifier pairwiseClassifier)
Create pipe for conditionalClusterer


loadIEInterface

public IEInterface loadIEInterface()
if useCRF==true, load the CRF and create a IEInterface object to be used during coref


createNodesFromFiles

public java.util.ArrayList[] createNodesFromFiles(java.lang.String[] dirNames,
                                                  IEInterface ieInterface,
                                                  java.lang.String type)
Read citation files and create nodes