at.tuwien.ifs.somtoolbox.summarisation.methods
Class TFxIDF

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.summarisation.methods.TFxIDF
Direct Known Subclasses:
CombinedMethod, KeywordMethod, LocationMethod, TitleMethod

public class TFxIDF
extends Object

Version:
$Id: TFxIDF.java 3589 2010-05-21 10:42:01Z mayer $
Author:
Julius Penaranda

Field Summary
private  ArrayList<String> doc
           
private  cern.colt.list.DoubleArrayList doubarray
           
private  cern.colt.matrix.DoubleMatrix1D doublevec
           
private  InputDatum inputd
           
private  InputData inputVector
           
private  cern.colt.list.IntArrayList intarray
           
private  PartOfSpeech pos
           
private  SOMLibTemplateVector templateVector
           
private  cern.colt.list.DoubleArrayList tfxidfarray
           
 
Constructor Summary
TFxIDF()
           
TFxIDF(PartOfSpeech p)
           
 
Method Summary
 cern.colt.list.DoubleArrayList computeScores(String type)
          computes scores of each sentence
 void setDocument(String filename, ArrayList<String> doc)
          Sets document
 void setVectors(InputData input, SOMLibTemplateVector template)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputVector

private InputData inputVector

templateVector

private SOMLibTemplateVector templateVector

inputd

private InputDatum inputd

doublevec

private cern.colt.matrix.DoubleMatrix1D doublevec

doc

private ArrayList<String> doc

intarray

private cern.colt.list.IntArrayList intarray

doubarray

private cern.colt.list.DoubleArrayList doubarray

tfxidfarray

private cern.colt.list.DoubleArrayList tfxidfarray

pos

private PartOfSpeech pos
Constructor Detail

TFxIDF

public TFxIDF()

TFxIDF

public TFxIDF(PartOfSpeech p)
Method Detail

setVectors

public void setVectors(InputData input,
                       SOMLibTemplateVector template)

setDocument

public void setDocument(String filename,
                        ArrayList<String> doc)
Sets document


computeScores

public cern.colt.list.DoubleArrayList computeScores(String type)
computes scores of each sentence