Dmitry Kirsanov commited on
Commit
af00668
·
1 Parent(s): 1c8a84b
Files changed (1) hide show
  1. understand.py +1 -1
understand.py CHANGED
@@ -242,7 +242,7 @@ Output just the document with the audience markup sentence, but otherwise unchan
242
 
243
  def split_document(self):
244
  audience = self.values.get("actors, generalized")[0]
245
- derivative_string = f"<document>{self.values.get("FAD with audience")}</document>"
246
  derivative = newline.join(ET.fromstring(derivative_string).fiindall(f"//sentence[contains(@audience,'{audience}')]/text()"))
247
  ret = self.query(
248
  f"""Below is a document inside <document>...</document>. It is a {self.values.get("document type")}.
 
242
 
243
  def split_document(self):
244
  audience = self.values.get("actors, generalized")[0]
245
+ derivative_string = f"<document>{self.values.get('FAD with audience')}</document>"
246
  derivative = newline.join(ET.fromstring(derivative_string).fiindall(f"//sentence[contains(@audience,'{audience}')]/text()"))
247
  ret = self.query(
248
  f"""Below is a document inside <document>...</document>. It is a {self.values.get("document type")}.