Beispiel #1
0
 def sents(self):
     for sent in sentenize(self.text):
         objects = sent_spans(sent, self.objects)
         yield FactruMarkup(
             self.id, sent.text,
             list(objects)
         )
Beispiel #2
0
 def sents(self):
     for sent in sentenize(self.text):
         spans = sent_spans(sent, self.spans)
         yield Ne5Markup(
             self.id, sent.text,
             list(spans)
         )
Beispiel #3
0
 def sents(self):
     for sent in sentenize(self.text):
         spans = sent_spans(sent, self.spans)
         yield DeeppavlovMarkup(sent.text, list(spans))
Beispiel #4
0
 def sents(self):
     for sent in sentenize(self.text):
         spans = sent_spans(sent, self.spans)
         yield self.__class__(sent.text, list(spans))
Beispiel #5
0
 def sents(self):
     for sent in sentenize(self.text):
         matches = sent_spans(sent, self.matches)
         yield PullentiMarkup(sent.text, list(matches))
Beispiel #6
0
 def sents(self):
     for sent in sentenize(self.text):
         facts = sent_spans(sent, self.facts)
         yield TomitaMarkup(sent.text, list(facts))