gate.creole.morph
Class TestMorph

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended bygate.creole.morph.TestMorph
All Implemented Interfaces:
junit.framework.Test

public class TestMorph
extends junit.framework.TestCase

Title: TestMorph

Description:

Copyright: Copyright (c) 2000

Company: University Of Sheffield

Version:
1.0
Author:
not attributable

Field Summary
private  int counter
           
private  Morph morpher
           
private  Document nounDocumentToTest
           
private  Document nounDocumentWithAnswers
           
private  int outOf
           
private  FeatureMap params
           
private  DefaultTokeniser tokeniser
           
private  Document verbDocumentToTest
           
private  Document verbDocumentWithAnswers
           
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
TestMorph(String dummy)
           
 
Method Summary
protected  void setUp()
          This method sets up the parameters for the files to be testes It initialises the Tokenizer and sets up the other parameters for the morph program
static junit.framework.Test suite()
           
 void testNouns()
          Test the morpher on nouns, if their roots are identified correctly or not
 void testVerbs()
          Test the morpher on verbs, if their roots are identified correctly or not
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

morpher

private Morph morpher

verbDocumentToTest

private Document verbDocumentToTest

verbDocumentWithAnswers

private Document verbDocumentWithAnswers

nounDocumentToTest

private Document nounDocumentToTest

nounDocumentWithAnswers

private Document nounDocumentWithAnswers

params

private FeatureMap params

tokeniser

private DefaultTokeniser tokeniser

counter

private int counter

outOf

private int outOf
Constructor Detail

TestMorph

public TestMorph(String dummy)
Method Detail

setUp

protected void setUp()
This method sets up the parameters for the files to be testes It initialises the Tokenizer and sets up the other parameters for the morph program


testVerbs

public void testVerbs()
Test the morpher on verbs, if their roots are identified correctly or not


testNouns

public void testNouns()
Test the morpher on nouns, if their roots are identified correctly or not


suite

public static junit.framework.Test suite()