calhoun.analysis.crf.test
Class LogprobLookupTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by calhoun.util.AbstractTestCase
              extended by calhoun.analysis.crf.test.LogprobLookupTest
All Implemented Interfaces:
junit.framework.Test

public class LogprobLookupTest
extends AbstractTestCase

Tests that CRF is working with valid probabilities - the sum of all possible labelings is 1. Test that the code to walk through only the valid paths works correctly. Uses a two state model that disallows transitions to self. 010101... or 101010... are the only allowed paths.


Constructor Summary
LogprobLookupTest()
           
 
Method Summary
 void testLogProbLookupRC()
           
 
Methods inherited from class calhoun.util.AbstractTestCase
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertBeginsWith, assertEndsWith, assertEquals, assertFilesMatch, assertFlatFileRecordsMatch, assertStringEquals, assertStringEquals, assertXmlFilesMatch, runBare
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, setName, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LogprobLookupTest

public LogprobLookupTest()
Method Detail

testLogProbLookupRC

public void testLogProbLookupRC()
                         throws java.lang.Exception
Throws:
java.lang.Exception