ontea.transform
Class MorphonaryLemmatizer

java.lang.Object
  extended by ontea.transform.MorphonaryLemmatizer
All Implemented Interfaces:
ResultTransformer

public class MorphonaryLemmatizer
extends java.lang.Object
implements ResultTransformer

Using Tvaroslovnik lemmatizer to transform results to lemmatized results

Author:
Michal Laclavik

Field Summary
(package private)  boolean diacritics
           
private static org.apache.log4j.Logger log
           
(package private)  boolean nounsOnly
           
 
Constructor Summary
MorphonaryLemmatizer()
           
 
Method Summary
static java.lang.String getLemma(java.lang.String text)
           
 Result transform(Result result)
          It will modiffy result's individual property string.
 java.util.Set<Result> transform(java.util.Set<Result> results)
          It will modiffy results' individual property string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log

diacritics

boolean diacritics

nounsOnly

boolean nounsOnly
Constructor Detail

MorphonaryLemmatizer

public MorphonaryLemmatizer()
Method Detail

transform

public Result transform(Result result)
It will modiffy result's individual property string. String will be lemmatizied using Slovak lemmatizer Tvaroslovnik

Specified by:
transform in interface ResultTransformer
Parameters:
result - result to be transformed
Returns:
transformed result
See Also:
ResultTransformer.transform(ontea.core.Result)

transform

public java.util.Set<Result> transform(java.util.Set<Result> results)
It will modiffy results' individual property string. String will be lemmatizied using Slovak lemmatizer Tvaroslovnik

Specified by:
transform in interface ResultTransformer
Parameters:
results - set of results
Returns:
transformed set of results
See Also:
ResultTransformer.transform(java.util.Set)

getLemma

public static java.lang.String getLemma(java.lang.String text)