Package cc.mallet.fst.tests
Class TestMEMM
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- cc.mallet.fst.tests.TestMEMM
-
- All Implemented Interfaces:
junit.framework.Test
public class TestMEMM extends junit.framework.TestCase
Tests for MEMM training.- Author:
- Andrew McCallum mccallum@cs.umass.edu
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TestMEMM.TestMEMM2String
static class
TestMEMM.TestMEMMTokenSequenceRemoveSpaces
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
data
-
Constructor Summary
Constructors Constructor Description TestMEMM(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disabledtestAddOrderNStates()
void
disabledtestCost(int useSave)
void
disabledtestDenseSerialization()
void
disabledtestDenseTrain()
void
disabledtestPrint()
void
disabledtestSerialization()
void
disabledtestTrain()
void
disabledtestValueGradient()
void
doTestSpacePrediction(boolean testValueAndGradient)
void
doTestSpacePrediction(boolean testValueAndGradient, boolean useSaved, boolean useSparseWeights)
static void
main(java.lang.String[] args)
static Pipe
makeSpacePredictionPipe()
static junit.framework.Test
suite()
void
testGetSetParameters()
void
testIncrement()
-
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
-
-
-
-
Method Detail
-
testGetSetParameters
public void testGetSetParameters()
-
disabledtestCost
public void disabledtestCost(int useSave)
-
testIncrement
public void testIncrement()
-
doTestSpacePrediction
public void doTestSpacePrediction(boolean testValueAndGradient)
-
doTestSpacePrediction
public void doTestSpacePrediction(boolean testValueAndGradient, boolean useSaved, boolean useSparseWeights)
-
makeSpacePredictionPipe
public static Pipe makeSpacePredictionPipe()
-
disabledtestAddOrderNStates
public void disabledtestAddOrderNStates()
-
disabledtestValueGradient
public void disabledtestValueGradient()
-
disabledtestTrain
public void disabledtestTrain()
-
disabledtestDenseTrain
public void disabledtestDenseTrain()
-
disabledtestSerialization
public void disabledtestSerialization()
-
disabledtestDenseSerialization
public void disabledtestDenseSerialization()
-
disabledtestPrint
public void disabledtestPrint()
-
suite
public static junit.framework.Test suite()
-
main
public static void main(java.lang.String[] args)
-
-