|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractProcessingResource
gate.creole.AbstractLanguageAnalyser
gate.creole.morph.Morph
Description: This class is a wrapper for Interpret,
the Morphological Analyzer.
| Nested Class Summary |
| Nested classes inherited from class gate.creole.AbstractProcessingResource |
AbstractProcessingResource.InternalStatusListener, AbstractProcessingResource.IntervalProgressListener |
| Field Summary |
| Fields inherited from class gate.creole.AbstractLanguageAnalyser |
corpus |
| Fields inherited from class gate.creole.AbstractProcessingResource |
interrupted |
| Fields inherited from class gate.creole.AbstractResource |
name |
| Fields inherited from class gate.util.AbstractFeatureBearer |
features |
| Constructor Summary | |
Morph()
Default Constructor |
|
| Method Summary | |
void |
execute()
Method is executed after the init() method has finished its execution. |
String |
findAffix(String word,
String cat)
This method should only be called after init() |
String |
findBaseWord(String word,
String cat)
This method should only be called after init() |
String |
getAffixFeatureName()
Returns the feature name that has been currently set to display the affix word |
String |
getAnnotationSetName()
Returns the name of the AnnotationSet that has been provided to create the AnnotationSet |
Boolean |
getCaseSensitive()
A method which returns if the parser is in caseSenstive mode |
Boolean |
getConsiderPOSTag()
|
Document |
getDocument()
Returns the document under process |
String |
getRootFeatureName()
Returns the feature name that has been currently set to display the root word |
URL |
getRulesFile()
Returns the document under process |
Resource |
init()
This method creates the instance of the BaseWord - English Morpher and returns the instance of current class with different attributes and the instance of BaseWord class wrapped into it. |
void |
setAffixFeatureName(String affixFeatureName)
Sets the feature name that should be displayed for the affix |
void |
setAnnotationSetName(String annotationSetName)
Sets the AnnonationSet name, that is used to create the AnnotationSet |
void |
setCaseSensitive(Boolean value)
Sets the caseSensitive value, that is used to tell parser if it should convert document to lowercase before parsing |
void |
setConsiderPOSTag(Boolean value)
|
void |
setDocument(Document document)
Sets the document to be processed |
void |
setRootFeatureName(String rootFeatureName)
Sets the feature name that should be displayed for the root word |
void |
setRulesFile(URL rulesFile)
Sets the rule file to be processed |
| Methods inherited from class gate.creole.AbstractLanguageAnalyser |
getCorpus, setCorpus |
| Methods inherited from class gate.creole.AbstractProcessingResource |
addProgressListener, addStatusListener, cleanup, fireProcessFinished, fireProgressChanged, fireStatusChanged, interrupt, isInterrupted, reInit, removeProgressListener, removeStatusListener |
| Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getBeanInfo, getName, getParameterValue, getParameterValue, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
| Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures, setFeatures |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gate.ProcessingResource |
reInit |
| Methods inherited from interface gate.Resource |
cleanup, getParameterValue, setParameterValue, setParameterValues |
| Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
| Methods inherited from interface gate.util.NameBearer |
getName, setName |
| Methods inherited from interface gate.Executable |
interrupt, isInterrupted |
| Constructor Detail |
public Morph()
| Method Detail |
public Resource init()
throws ResourceInstantiationException
init in interface Resourceinit in class AbstractProcessingResourceResourceInstantiationException
public void execute()
throws ExecutionException
execute in interface Executableexecute in class AbstractProcessingResourceExecutionExceptionpublic void setDocument(Document document)
setDocument in interface LanguageAnalysersetDocument in class AbstractLanguageAnalyserdocument - - document to be processed
public String findBaseWord(String word,
String cat)
word -
public String findAffix(String word,
String cat)
word -
public Document getDocument()
getDocument in interface LanguageAnalysergetDocument in class AbstractLanguageAnalyserpublic void setRulesFile(URL rulesFile)
public URL getRulesFile()
public String getRootFeatureName()
public void setRootFeatureName(String rootFeatureName)
rootFeatureName - public String getAffixFeatureName()
public void setAffixFeatureName(String affixFeatureName)
affixFeatureName - public String getAnnotationSetName()
public void setAnnotationSetName(String annotationSetName)
annotationSetName - public Boolean getCaseSensitive()
Boolean value.public void setCaseSensitive(Boolean value)
public Boolean getConsiderPOSTag()
public void setConsiderPOSTag(Boolean value)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||