org.carrot2.filter.stc.algorithm
Class ArrayStemmedSnippet

java.lang.Object
  extended by org.carrot2.filter.stc.algorithm.ArrayStemmedSnippet

public class ArrayStemmedSnippet
extends Object

An array representation of stemmed snippet's terms.


Nested Class Summary
 class ArrayStemmedSnippet.StemmedSentence
          Nested class representing a sentence in this snippet.
 
Constructor Summary
ArrayStemmedSnippet(StemmedTerm[] snippetTerms)
          Public constructor.
 
Method Summary
 SuffixableElement getSentence(int n)
          Returns n-th sentence of this snippet
 int size()
          Returns the number of sentences in this snippet
 String toString()
          String representation of this object
 void trimEdgeStopWords()
          Trims stop words from the edges of sentences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArrayStemmedSnippet

public ArrayStemmedSnippet(StemmedTerm[] snippetTerms)
Public constructor.

Method Detail

size

public int size()
Returns the number of sentences in this snippet


getSentence

public SuffixableElement getSentence(int n)
Returns n-th sentence of this snippet


trimEdgeStopWords

public void trimEdgeStopWords()
Trims stop words from the edges of sentences.


toString

public String toString()
String representation of this object

Overrides:
toString in class Object


Copyright (c) Dawid Weiss, Stanislaw Osinski