com.intersystems.iknow.languagemodel.slavic.MorphologicalAnalyzer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of languagemodel-slavic Show documentation
Show all versions of languagemodel-slavic Show documentation
Slavic Language Model for use with iKnow/iFind
The newest version!
/*-
* $Id: 3c270ad46e59bc4a915eeff3acfb0be34822246a $
*/
package com.intersystems.iknow.languagemodel.slavic;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Map;
import java.util.Set;
/**
* Common superinterface for all stemming engines.
*
* @author Andrey Shcheglov (mailto:[email protected])
*/
public interface MorphologicalAnalyzer extends Remote {
/**
* Returns a map of tokens (i. e words) and
* (possibly, multiple) analyzes corresponding to each token. If
* a particular token can't be found in the dictionary, an empty
* set will be mapped to this token.
*
* @param text a single word or a word sequence (i. e. a sentence)
* @return a map of tokens and analyzes
* corresponding to each token.
* @throws AnalysisException
* @throws RemoteException
*/
Map> analyze(final String text)
throws AnalysisException, RemoteException;
}