def setUp(self): self.example_text = """<AnnotatedText File="test.txt"> <A LAT="LongRule1">two words</A> , <A LAT="ShortRule1">two</A> <A LAT="ShortRule2">words</A> </AnnotatedText>""" self.annotated_text = CompareDocuscope.read_text(self.example_text)
def setUp(self): text = """<AnnotatedText File="test.txt"> <A LAT="LongRule1">two words</A> , <A LAT="ShortRule1">now</A> <A LAT="ShortRule1">three</A> <A LAT="ShortRule2">words</A> </AnnotatedText>""" tags = CompareDocuscope.read_text(text) self.lats = CompareDocuscope.count_lats(tags)