Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
PyniniIOTest fail
$ pytest -v -k PyniniIOTest
======================================================================= test session starts ========================================================================
platform darwin -- Python 2.7.14, pytest-3.5.0, py-1.5.3, pluggy-0.6.0 -- /Users/bob/analyze/geocoding_307_vocab-graph/env/bin/python2.7
cachedir: .pytest_cache
rootdir: /Users/bob/analyze/geocoding_307_vocab-graph/Pynini, inifile:
collected 158 items / 154 deselected
pynini_test.py::PyniniIOTest::testFileIO FAILED [ 25%]
pynini_test.py::PyniniIOTest::testGarbageReadRaisesFstIOError PASSED [ 50%]
pynini_test.py::PyniniIOTest::testPickleIO FAILED [ 75%]
pynini_test.py::PyniniIOTest::testStringIO FAILED [100%]
============================================================================= FAILURES =============================================================================
_____________________________________________________________________ PyniniIOTest.testFileIO ______________________________________________________________________
self = <pynini_test.PyniniIOTest testMethod=testFileIO>
def testFileIO(self):
tmp = os.path.join(tempfile.gettempdir(), "tmp.fst")
self.f.write(tmp)
try:
> g = Fst.read(tmp)
pynini_test.py:356:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pynini.pyx:450: in pynini.Fst.read
???
pynini.pyx:859: in pynini._read
???
pywrapfst.pyx:2778: in pywrapfst.Fst.read
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E FstIOError: Read failed: '/var/folders/vs/yl13pzp52qb153z2gp6p0d7w0000gn/T/tmp.fst'
pywrapfst.pyx:2728: FstIOError
----------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------
ERROR: GenericRegister::GetEntry: dlopen(vector-fst.so, 1): image not found
ERROR: MutableFst::Read: Unknown FST type "vector" (arc type = "standard"): /var/folders/vs/yl13pzp52qb153z2gp6p0d7w0000gn/T/tmp.fst
____________________________________________________________________ PyniniIOTest.testPickleIO _____________________________________________________________________
self = <pynini_test.PyniniIOTest testMethod=testPickleIO>
def testPickleIO(self):
sink = pickle.dumps(self.f)
> g = pickle.loads(sink)
pynini_test.py:372:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py:1388: in loads
return Unpickler(file).load()
/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py:864: in load
dispatch[key](self)
/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py:1139: in load_reduce
value = func(*args)
pynini.pyx:862: in pynini._read_from_string
???
pynini.pyx:863: in pynini._read_from_string
???
pywrapfst.pyx:2799: in pywrapfst.Fst.read_from_string
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E FstIOError: Read failed: <string>
pywrapfst.pyx:2738: FstIOError
----------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------
ERROR: GenericRegister::GetEntry: dlopen(vector-fst.so, 1): image not found
ERROR: MutableFst::Read: Unknown FST type "vector" (arc type = "standard"): <pywrapfst>
____________________________________________________________________ PyniniIOTest.testStringIO _____________________________________________________________________
self = <pynini_test.PyniniIOTest testMethod=testStringIO>
def testStringIO(self):
sink = self.f.write_to_string()
> g = Fst.read_from_string(sink)
pynini_test.py:367:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pynini.pyx:468: in pynini.Fst.read_from_string
???
pynini.pyx:863: in pynini._read_from_string
???
pywrapfst.pyx:2799: in pywrapfst.Fst.read_from_string
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E FstIOError: Read failed: <string>
pywrapfst.pyx:2738: FstIOError
----------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------
ERROR: GenericRegister::GetEntry: dlopen(vector-fst.so, 1): image not found
ERROR: MutableFst::Read: Unknown FST type "vector" (arc type = "standard"): <pywrapfst>
======================================================== 3 failed, 1 passed, 154 deselected in 1.25 seconds ========================================================
16:09 $ python setup.py test
running test
running egg_info
writing pynini.egg-info/PKG-INFO
writing top-level names to pynini.egg-info/top_level.txt
writing dependency_links to pynini.egg-info/dependency_links.txt
reading manifest file 'pynini.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pynini.egg-info/SOURCES.txt'
running build_ext
copying build/lib.macosx-10.13-x86_64-2.7/pywrapfst.so ->
copying build/lib.macosx-10.13-x86_64-2.7/pynini.so ->
testAGoesToBInTheContextOfCAndD (pynini_test.PyniniCDRewriteTest) ... ok
testLambdaTransducerRaisesFstOpError (pynini_test.PyniniCDRewriteTest) ... ERROR: CDRewriteRule::Compile: lambda must be an unweighted acceptor
ok
testPreSDeletion (pynini_test.PyniniCDRewriteTest) ... ok
testPreSDeletionRTL (pynini_test.PyniniCDRewriteTest) ... ok
testProthesis (pynini_test.PyniniCDRewriteTest) ... ok
testRhoTransducerRaisesFstOpError (pynini_test.PyniniCDRewriteTest) ... ERROR: CDRewriteRule::Compile: rho must be an unweighted acceptor
ok
testRhotacism (pynini_test.PyniniCDRewriteTest) ... ok
testTDDeletion (pynini_test.PyniniCDRewriteTest) ... ok
testWeightedLambdaRaisesFstOpError (pynini_test.PyniniCDRewriteTest) ... ERROR: CDRewriteRule::Compile: lambda must be an unweighted acceptor
ok
testWeightedRhoRaisesFstOpError (pynini_test.PyniniCDRewriteTest) ... ERROR: CDRewriteRule::Compile: rho must be an unweighted acceptor
ok
testRangeClosure (pynini_test.PyniniClosureTest) ... ok
testDifferenceWithUnion (pynini_test.PyniniDifferenceTest) ... ok
testDowncastTypesAreCorrect (pynini_test.PyniniDowncastTest) ... ok
testDowncastedMutationTriggersDeepCopy (pynini_test.PyniniDowncastTest) ... ok
testEpsilonMachineHasFinalWeight (pynini_test.PyniniEpsilonMachineTest) ... ok
testLog64EpsilonMachineHasRightTopology (pynini_test.PyniniEpsilonMachineTest) ... ok
testEqual (pynini_test.PyniniEqualTest) ... ok
testEqualOperator (pynini_test.PyniniEqualTest) ... ok
testNotEqualOperator (pynini_test.PyniniEqualTest) ... ok
testBadDestinationIndexAddArcDoesNotRaiseFstIndexError (pynini_test.PyniniExceptionsTest) ... ERROR: Verify: FST destination state ID of arc at position 0 of state 0 is negative
ok
testBadIndexDeleteArcsRaisesFstIndexError (pynini_test.PyniniExceptionsTest) ... ERROR: State ID -1 not valid
ok
testBadIndexNumArcsRaisesFstIndexError (pynini_test.PyniniExceptionsTest) ... ERROR: State ID -1 not valid
ok
testBadIndexNumInputEpsilonsRaisesFstIndexError (pynini_test.PyniniExceptionsTest) ... ERROR: State ID -1 not valid
ok
testBadIndexNumOutputEpsilonsRaisesFstIndexError (pynini_test.PyniniExceptionsTest) ... ERROR: State ID -1 not valid
ok
testBadIndicesDeleteStatesRaisesFstIndexError (pynini_test.PyniniExceptionsTest) ... ERROR: State ID -1 not valid
ok
testBadSourceIndexAddArcRaisesFstIndexError (pynini_test.PyniniExceptionsTest) ... ERROR: State ID -1 not valid
ok
testGarbageCallArcLabelingReplaceRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageComposeFilterComposeRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageComposeFilterDifferenceRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageInputTokenTypeStringFileRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageInputTokenTypeStringMapRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageInputTokenTypeStringPathsRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageOutputTokenTypeStringFileRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageOutputTokenTypeStringMapRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageOutputTokenTypeStringPathsRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageQueueTypeRmepsilonRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageQueueTypeShortestDistanceRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageQueueTypeShortestPathRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageReturnArcLabelingReplaceRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageSelectTypeRandgenRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testGarbageWeightTypeRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ERROR: GenericRegister::GetEntry: dlopen(nonexistent.so, 1): image not found
ERROR: Unknown weight type: nonexistent
ok
testTransducerDifferenceRaisesFstArgError (pynini_test.PyniniExceptionsTest) ... ok
testWrongWeightTypeAddArcRaisesFstOpError (pynini_test.PyniniExceptionsTest) ... ERROR: FST and weight with non-matching weight types passed to AddArc: tropical and log
ok
testWrongWeightTypeDeterminizeRaisesFstOpError (pynini_test.PyniniExceptionsTest) ... ERROR: FST and weight with non-matching weight types passed to Determinize: tropical and log
ok
testWrongWeightTypeDisambiguateRaisesFstOpError (pynini_test.PyniniExceptionsTest) ... ERROR: FST and weight with non-matching weight types passed to Disambiguate: tropical and log
ok
testWrongWeightTypePruneRaisesFstOpError (pynini_test.PyniniExceptionsTest) ... ERROR: FST and weight with non-matching weight types passed to Prune: tropical and log
ok
testWrongWeightTypeRmepsilonRaisesFstOpError (pynini_test.PyniniExceptionsTest) ... ERROR: FST and weight with non-matching weight types passed to RmEpsilon: tropical and log
ok
testWrongWeightTypeSetFinalRaisesFstOpError (pynini_test.PyniniExceptionsTest) ... ERROR: FST and weight with non-matching weight types passed to SetFinal: tropical and log
ok
testGetByteSymbolTable (pynini_test.PyniniGetByteSymbolTable) ... ok
testFileIO (pynini_test.PyniniIOTest) ... ERROR: GenericRegister::GetEntry: dlopen(vector-fst.so, 1): image not found
ERROR: MutableFst::Read: Unknown FST type "vector" (arc type = "standard"): /var/folders/vs/yl13pzp52qb153z2gp6p0d7w0000gn/T/tmp.fst
ERROR
testGarbageReadRaisesFstIOError (pynini_test.PyniniIOTest) ... ERROR: ReadFst: Can't open file: nonexistent
ok
testPickleIO (pynini_test.PyniniIOTest) ... ERROR: GenericRegister::GetEntry: dlopen(vector-fst.so, 1): image not found
ERROR: MutableFst::Read: Unknown FST type "vector" (arc type = "standard"): <pywrapfst>
ERROR
testStringIO (pynini_test.PyniniIOTest) ... ERROR: GenericRegister::GetEntry: dlopen(vector-fst.so, 1): image not found
ERROR: MutableFst::Read: Unknown FST type "vector" (arc type = "standard"): <pywrapfst>
ERROR
testLenientCompositionOfInDomainStringWithTransducerIsTransduced (pynini_test.PyniniLenientlyComposeTest) ... ok
testLenientCompositionOfOutOfDomainStringWithTransducerIsIdentity (pynini_test.PyniniLenientlyComposeTest) ... ok
testMatches (pynini_test.PyniniMatchesTest) ... ok
testNotMatch (pynini_test.PyniniMatchesTest) ... ok
testPdtReplace (pynini_test.PyniniPdtReplaceTest) ... ok
testReplace (pynini_test.PyniniReplaceTest) ... ok
testReplaceWithCyclicDependenciesRaisesFstOpError (pynini_test.PyniniReplaceTest) ... ERROR: Cyclic dependencies present in replacement set
ok
testByteToByteStringFile (pynini_test.PyniniStringFileTest) ... ok
testByteToSymbolStringFile (pynini_test.PyniniStringFileTest) ... ok
testByteToUtf8StringFile (pynini_test.PyniniStringFileTest) ... ok
testUtf8ToUtf8StringFile (pynini_test.PyniniStringFileTest) ... ok
testByteToByteStringMap (pynini_test.PyniniStringMapTest) ... ok
testByteToSymbolStringMap (pynini_test.PyniniStringMapTest) ... ok
testByteToUtf8StringMap (pynini_test.PyniniStringMapTest) ... ok
testDictionaryStringMap (pynini_test.PyniniStringMapTest) ... ok
testUtf8ToUtf8StringMap (pynini_test.PyniniStringMapTest) ... ok
testStringPathLabelsWithEpsilons (pynini_test.PyniniStringPathsTest) ... ok
testStringPathLabelsWithoutEpsilons (pynini_test.PyniniStringPathsTest) ... ok
testStringPaths (pynini_test.PyniniStringPathsTest) ... ok
testStringPathsAfterFstDeletion (pynini_test.PyniniStringPathsTest) ... ok
testStringPathsIterIStrings (pynini_test.PyniniStringPathsTest) ... ok
testStringPathsIterOStrings (pynini_test.PyniniStringPathsTest) ... ok
testStringPathsIterWeights (pynini_test.PyniniStringPathsTest) ... ok
testAcceptorWithoutAttachedSymbolTables (pynini_test.PyniniStringTest) ... ok
testAsciiByteStringify (pynini_test.PyniniStringTest) ... ok
testAsciiByteStringifyAfterSymbolTableDeletion (pynini_test.PyniniStringTest) ... ok
testAsciiUtf8AcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testAsciiUtf8Stringify (pynini_test.PyniniStringTest) ... ok
testBracketedCharsBytestringAcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testBracketedTokenizationAcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testCompositionOfLog64ArcAndStringWorks (pynini_test.PyniniStringTest) ... ok
testCompositionOfLogArcAndStringWorks (pynini_test.PyniniStringTest) ... ok
testCompositionOfStringAndLog64ArcWorks (pynini_test.PyniniStringTest) ... ok
testCompositionOfStringAndLogArcWorks (pynini_test.PyniniStringTest) ... ok
testCrossProductTransducerCompilation (pynini_test.PyniniStringTest) ... ok
testEscapedBracketsBytestringAcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testGarbageArcTypeAcceptorRaisesFstArgError (pynini_test.PyniniStringTest) ... ERROR: GenericRegister::GetEntry: dlopen(nonexistent-arc.so, 1): image not found
ERROR: VectorFstClass: Unknown arc type: nonexistent
ok
testGarbageArcTypeTransducerRaisesFstArgError (pynini_test.PyniniStringTest) ... ERROR: GenericRegister::GetEntry: dlopen(nonexistent-arc.so, 1): image not found
ERROR: VectorFstClass: Unknown arc type: nonexistent
ok
testGarbageWeightAcceptorRaisesFstBadWeightError (pynini_test.PyniniStringTest) ... ERROR: StrToWeight: Bad weight = "nonexistent", source = WeightClass, line = 0
ok
testGarbageWeightTransducerRaisesFstBadWeightError (pynini_test.PyniniStringTest) ... ERROR: StrToWeight: Bad weight = "nonexistent", source = WeightClass, line = 0
ok
testLog64WeightToLogAcceptorRaisesFstStringCompilationError (pynini_test.PyniniStringTest) ... ERROR: FST and weight with non-matching weight types passed to CompileSymbolString: log and log64
ok
testLogWeightToStandardAcceptorRaisesFstStringCompilationError (pynini_test.PyniniStringTest) ... ERROR: FST and weight with non-matching weight types passed to CompileSymbolString: tropical and log
ok
testStringifyOnNonkStringFstRaisesFstArgError (pynini_test.PyniniStringTest) ... ERROR: FstToOutputLabels: State with multiple arcs
ok
testTransducerWithoutAttachedSymbolTables (pynini_test.PyniniStringTest) ... ok
testTropicalWeightToLog64TransducerRaisesFstOpError (pynini_test.PyniniStringTest) ... ERROR: FST and weight with non-matching weight types passed to CrossProduct: log64 and tropical
ok
testUnbalancedBracketsAcceptorRaisesFstStringCompilationError (pynini_test.PyniniStringTest) ... ERROR: BracketedByteStringToLabels: Unbalanced brackets
ok
testUnbalancedBracketsTransducerRaisesFstStringCompilationError (pynini_test.PyniniStringTest) ... ERROR: BracketedByteStringToLabels: Unbalanced brackets
ok
testUnbracketedBytestringCastingWeightedAcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testUnbracketedBytestringUnweightedAcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testUnbracketedBytestringUnweightedTransducerCompilation (pynini_test.PyniniStringTest) ... ok
testUnbracketedBytestringWeightedAcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testUnbracketedBytestringWeightedTransducerCompilation (pynini_test.PyniniStringTest) ... ok
testUnicodeByteStringify (pynini_test.PyniniStringTest) ... ok
testUnicodeBytestringAcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testUnicodeSymbolStringify (pynini_test.PyniniStringTest) ... ok
testUnicodeUtf8AcceptorCompilation (pynini_test.PyniniStringTest) ... ok
testUnicodeUtf8Stringify (pynini_test.PyniniStringTest) ... ok
testUtf8ByteStringify (pynini_test.PyniniStringTest) ... ok
testUtf8StringifyAfterSymbolTableDeletion (pynini_test.PyniniStringTest) ... ok
testUtf8Utf8Stringify (pynini_test.PyniniStringTest) ... ok
testInputSymbolTableAccessAfterFstDeletion (pynini_test.PyniniSymbolTableTest) ... ok
testOutputSymbolTableAccessAfterFstDeletion (pynini_test.PyniniSymbolTableTest) ... ok
testLog64HalfPlusHalfEqualsOneHalf (pynini_test.PyniniWeightTest) ... ok
testLog64HalfTimesOneEqualsHalf (pynini_test.PyniniWeightTest) ... ok
testLog64OneDivideOneEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLog64OneDivideZeroRaisesBadWeightError (pynini_test.PyniniWeightTest) ... ok
testLog64OnePlusOneEqualsTwo (pynini_test.PyniniWeightTest) ... ok
testLog64OnePlusZeroEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLog64OneTimesOneEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLog64OneTimesZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testLog64ToTheTenthPowerEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLog64ToTheZerothPowerEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLog64ZeroDivideOneEqualsZero (pynini_test.PyniniWeightTest) ... ok
testLog64ZeroDivideZeroRaisesFstBadWeightError (pynini_test.PyniniWeightTest) ... ok
testLog64ZeroPlusZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testLog64ZeroTimesZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testLogHalfPlusHalfEqualsOneHalf (pynini_test.PyniniWeightTest) ... ok
testLogHalfTimesOneEqualsHalf (pynini_test.PyniniWeightTest) ... ok
testLogOneDivideOneEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLogOneDivideZeroRaisesBadWeightError (pynini_test.PyniniWeightTest) ... ok
testLogOnePlusOneEqualsTwo (pynini_test.PyniniWeightTest) ... ok
testLogOnePlusZeroEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLogOneTimesOneEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLogOneTimesZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testLogOneToTheTenthPowerEqualsOne (pynini_test.PyniniWeightTest) ... ok
testLogZeroDivideOneEqualsZero (pynini_test.PyniniWeightTest) ... ok
testLogZeroDivideZeroRaisesFstBadWeightError (pynini_test.PyniniWeightTest) ... ok
testLogZeroPlusZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testLogZeroTimesZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testLogZeroToTheZerothPowerEqualsOne (pynini_test.PyniniWeightTest) ... ok
testTropicalHalfPlusHalfEqualsHalf (pynini_test.PyniniWeightTest) ... ok
testTropicalHalfTimesOneEqualsHalf (pynini_test.PyniniWeightTest) ... ok
testTropicalOneDivideOneEqualsOne (pynini_test.PyniniWeightTest) ... ok
testTropicalOneDivideZeroRaisesFstBadWeightError (pynini_test.PyniniWeightTest) ... ok
testTropicalOnePlusOneEqualsOne (pynini_test.PyniniWeightTest) ... ok
testTropicalOnePlusZeroEqualsOne (pynini_test.PyniniWeightTest) ... ok
testTropicalOneTimesOneEqualsOne (pynini_test.PyniniWeightTest) ... ok
testTropicalOneTimesZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testTropicalOneToTheTenthPowerEqualsOne (pynini_test.PyniniWeightTest) ... ok
testTropicalZeroDivideOneEqualsZero (pynini_test.PyniniWeightTest) ... ok
testTropicalZeroDivideZeroRaisesFstBadWeightError (pynini_test.PyniniWeightTest) ... ok
testTropicalZeroPlusZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testTropicalZeroTimesZeroEqualsZero (pynini_test.PyniniWeightTest) ... ok
testTropicalZeroToTheZerothPowerEqualsOne (pynini_test.PyniniWeightTest) ... ok
testWorkedExample (pynini_test.PyniniWorkedExampleTest) ... ok
======================================================================
ERROR: testFileIO (pynini_test.PyniniIOTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bob/analyze/geocoding_307_vocab-graph/Pynini/pynini_test.py", line 356, in testFileIO
g = Fst.read(tmp)
File "pynini.pyx", line 450, in pynini.Fst.read
File "pynini.pyx", line 859, in pynini._read
File "pywrapfst.pyx", line 2778, in pywrapfst.Fst.read
File "pywrapfst.pyx", line 2728, in pywrapfst._read
FstIOError: Read failed: '/var/folders/vs/yl13pzp52qb153z2gp6p0d7w0000gn/T/tmp.fst'
======================================================================
ERROR: testPickleIO (pynini_test.PyniniIOTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bob/analyze/geocoding_307_vocab-graph/Pynini/pynini_test.py", line 372, in testPickleIO
g = pickle.loads(sink)
File "/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1388, in loads
return Unpickler(file).load()
File "/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 864, in load
dispatch[key](self)
File "/usr/local/Cellar/python@2/2.7.14_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py", line 1139, in load_reduce
value = func(*args)
File "pynini.pyx", line 862, in pynini._read_from_string
File "pynini.pyx", line 863, in pynini._read_from_string
File "pywrapfst.pyx", line 2799, in pywrapfst.Fst.read_from_string
File "pywrapfst.pyx", line 2738, in pywrapfst._read_from_string
FstIOError: Read failed: <string>
======================================================================
ERROR: testStringIO (pynini_test.PyniniIOTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/bob/analyze/geocoding_307_vocab-graph/Pynini/pynini_test.py", line 367, in testStringIO
g = Fst.read_from_string(sink)
File "pynini.pyx", line 468, in pynini.Fst.read_from_string
File "pynini.pyx", line 863, in pynini._read_from_string
File "pywrapfst.pyx", line 2799, in pywrapfst.Fst.read_from_string
File "pywrapfst.pyx", line 2738, in pywrapfst._read_from_string
FstIOError: Read failed: <string>
----------------------------------------------------------------------
Ran 158 tests in 0.307s
FAILED (errors=3)
Test failed: <unittest.runner.TextTestResult run=158 errors=3 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=158 errors=3 failures=0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.