Skip to content

Commit

Permalink
update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
bjascob committed Jan 22, 2024
1 parent dd220c6 commit bf81b58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/auto/ModelGenerateT5wtense.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import unittest
import spacy # requried or I get an error. From lazy loading? (spacy used to annotate graphs)
import amrlib
from amrlib.models.generate_t5wtense.model_input_helper import ModelInputHelper
from amrlib.models.generate_xfm.model_input_helper import ModelInputHelper


graph01 = '''
Expand Down Expand Up @@ -75,7 +75,7 @@ def testModelInputHelper(self):
self.assertTrue(mih1.annotation_performed)
mih2 = ModelInputHelper(graph02) # string has annotations
self.assertFalse(mih2.annotation_performed)
mih3 = ModelInputHelper(graph02, force_annotate=True)
mih3 = ModelInputHelper(graph02, reannotate=True)
self.assertTrue(mih3.annotation_performed)
self.assertEqual(mih1.get_tagged_oneline(), mih2.get_tagged_oneline())
self.assertEqual(mih1.get_tagged_oneline(), mih3.get_tagged_oneline())
Expand Down

0 comments on commit bf81b58

Please sign in to comment.