|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
gate.creole.morph.TestMorph
Title: TestMorph
Description:
Copyright: Copyright (c) 2000
Company: University Of Sheffield
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 |
private Morph morpher
private Document verbDocumentToTest
private Document verbDocumentWithAnswers
private Document nounDocumentToTest
private Document nounDocumentWithAnswers
private FeatureMap params
private DefaultTokeniser tokeniser
private int counter
private int outOf
Constructor Detail |
public TestMorph(String dummy)
Method Detail |
protected void setUp()
public void testVerbs()
public void testNouns()
public static junit.framework.Test suite()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |