Dmitry Kirsanov commited on
Commit
eb2c877
·
1 Parent(s): 199ce86

better example

Browse files
Files changed (1) hide show
  1. understand.py +7 -5
understand.py CHANGED
@@ -200,15 +200,17 @@ Read the entire document carefully. Remember everything you know about the conce
200
 
201
  A reader of this document has compiled a list of actors (parties) mentioned or implied in the document. Here is their list:
202
 
203
- {newline.join(["- " + x for x in self.values.get("actors")])}
204
 
205
- Your goal is to annotate each sentence of this document with its intended audience, by picking parties from this list. For each sentence, ask yourself: which of the parties from the list would benefit from this sentence's information? Use only the parties from the list; add the relevant partes, separated by commas, after the end of each sentence in [[double brackets]]. If several sentences in a row have the same audience, you can only mark the last one.
206
 
207
- For example, suppose you have a document describing the process of submitting a scientific paper for publication, and your parties are "Authors" and "Publishers". Here are example sentences with audience markup:
208
 
209
- The journey of the manuscript begins with an initial editorial review conducted by journal editors.[[Authors,Publishers]] Format the references in your paper according to journal guidelines.[[Authors]] Ensure the papers submitted through the online platform are indexed in relevant databases and repositories.[[Publishers]]
 
 
210
 
211
- Output just the document with the audience markup after each sentence, but otherwise unchanged.
212
 
213
  <document>{self.values.get("FAD")}</document>""")
214
  annotated = self.parse_document(ret)
 
200
 
201
  A reader of this document has compiled a list of actors (parties) mentioned or implied in the document. Here is their list:
202
 
203
+ {newline.join(["- " + x for x in self.values.get("actors, generalized")])}
204
 
205
+ Your goal is to annotate each sentence of this document with its intended audience, by picking parties from this list. For each sentence, ask yourself: which of the parties from the list would benefit from this sentence's information? Use only the parties from the list; add the relevant partes, separated by commas, after the end of each sentence in [[double brackets]].
206
 
207
+ For example, suppose you have a document describing the game of Sudoku, and your parties are "Players" and "Creators". Here are example sentences with audience markup:
208
 
209
+ <example>
210
+ Sudoku is a popular logic puzzle with numbers. Its rules are quite simple, so even beginners can handle the simple levels.[[Creators,Players]] A presented puzzle with more than one possible solution would usually be considered defective.[[Creators]] If you have completed finding all positions for a number, draw an X over that number in the list outside.[[Players]]
211
+ </example>
212
 
213
+ Output just the document with the audience markup after each sentence, but otherwise unchanged:
214
 
215
  <document>{self.values.get("FAD")}</document>""")
216
  annotated = self.parse_document(ret)