tml.corpus
Class SentenceCorpus

java.lang.Object
  extended by tml.corpus.Corpus
      extended by tml.corpus.SentenceCorpus
All Implemented Interfaces:
java.lang.Cloneable

public class SentenceCorpus
extends Corpus

Class representing a corpus formed with the sentences of a document

Author:
Jorge Villalon

Nested Class Summary
 
Nested classes/interfaces inherited from class tml.corpus.Corpus
Corpus.PassageFreqs
 
Constructor Summary
SentenceCorpus(TextDocument document)
           
 
Method Summary
 void load(Repository storage)
          Loads the content of the documents in the query and creates the term-doc matrix
 
Methods inherited from class tml.corpus.Corpus
getDimensions, getDocStats, getFilename, getIndexOfTerm, getLuceneQuery, getName, getNonzeros, getParameters, getPassageFrequencies, getPassages, getPassagesLuceneIds, getProcessingTime, getRepository, getSemanticSpace, getTermDocMatrix, getTermEntropies, getTerms, getTermStats, isDbAnnotations, isProjection, parametersSummary, printFrequencies, projectCorpus, setDbAnnotations, setDocStats, setName, setParameters, setProjection, setTermEntropies, setTermStats, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SentenceCorpus

public SentenceCorpus(TextDocument document)
               throws java.lang.Exception
Parameters:
document - the document to which the sentences belong
Throws:
java.lang.Exception - if the document is null
Method Detail

load

public void load(Repository storage)
          throws NotEnoughTermsInCorpusException,
                 java.io.IOException,
                 NoDocumentsInCorpusException,
                 TermWeightingException
Description copied from class: Corpus
Loads the content of the documents in the query and creates the term-doc matrix

Overrides:
load in class Corpus
Throws:
NotEnoughTermsInCorpusException
java.io.IOException
NoDocumentsInCorpusException
TermWeightingException