cc.mallet.fst.tests
Class TestMEMM

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by 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
 class TestMEMM.TestMEMM2String
           
static class TestMEMM.TestMEMMTokenSequenceRemoveSpaces
           
 
Field Summary
static java.lang.String[] data
           
 
Constructor Summary
TestMEMM(java.lang.String name)
           
 
Method Summary
 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()
           
 void testSpaceMaximizable()
           
 void testSpaceSerializable()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

data

public static final java.lang.String[] data
Constructor Detail

TestMEMM

public TestMEMM(java.lang.String name)
Method Detail

testGetSetParameters

public void testGetSetParameters()

testSpaceMaximizable

public void testSpaceMaximizable()

testSpaceSerializable

public void testSpaceSerializable()
                           throws java.io.IOException,
                                  java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

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)