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)
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): self.first_text = """<AnnotatedText File="test.txt"> <A LAT="LongRule1">two words</A> , <A LAT="ShortRule1">two</A> <A LAT="ShortRule2">words</A> </AnnotatedText>""" self.second_text = """<AnnotatedText File="test.txt"> <A LAT="LongRule2">two words</A> <A LAT="CommaRule">,</A> <A LAT="ShortRule1">two</A> <A LAT="ShortRule2">words</A> </AnnotatedText>""" self.results = CompareDocuscope.compare_results(self.first_text, self.second_text)