GATE
Version 3.1-2270

gate.creole.morph
Class Interpret

java.lang.Object
  extended by gate.creole.morph.Interpret

public class Interpret
extends Object

Title: Interpret.java

Description: This is the main class which which should be invoked to load the rule file in the system and then to execute the program to find the root word and the affix to it.


Constructor Summary
Interpret()
          Constructor
 
Method Summary
 String getAffix()
          This method tells what was the affix to the provided word
 void init(URL ruleFileURL)
          It starts the actual program
static void main(String[] args)
          Main method
 String runMorpher(String word, String category)
          Once all the rules have been loaded in the system, now its time to start the morpher, which will find out the base word rule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpret

public Interpret()
Constructor

Method Detail

init

public void init(URL ruleFileURL)
          throws ResourceInstantiationException
It starts the actual program

Parameters:
ruleFileName -
Throws:
ResourceInstantiationException

runMorpher

public String runMorpher(String word,
                         String category)
Once all the rules have been loaded in the system, now its time to start the morpher, which will find out the base word rule

Parameters:
word - input to the program
Returns:
root word

main

public static void main(String[] args)
                 throws ResourceInstantiationException
Main method

Parameters:
args -
Throws:
ResourceInstantiationException

getAffix

public String getAffix()
This method tells what was the affix to the provided word

Returns:
affix

GATE
Version 3.1-2270