alanthomas commited on
Commit
2ea96c2
·
verified ·
1 Parent(s): bfe22f8

Add preparation config

Browse files
Files changed (1) hide show
  1. preparation_config.yaml +64 -0
preparation_config.yaml ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ source:
2
+ dataset_id: FiscalNote/billsum
3
+ splits:
4
+ - train
5
+ - test
6
+ - ca_test
7
+ document_field: text
8
+ summary_field: summary
9
+ cleaning:
10
+ min_document_characters: 1000
11
+ max_document_characters: 24000
12
+ min_summary_characters: 100
13
+ min_document_to_summary_ratio: 2.0
14
+ splitting:
15
+ val_size: 500
16
+ test_size: 600
17
+ seed: 42
18
+ prompt:
19
+ target_summary_words: 190
20
+ system: You are a legislative analyst who writes official summaries of bills, in
21
+ the neutral, descriptive register of a Congressional Research Service summary
22
+ or a Legislative Counsel's Digest entry.
23
+ user_template: 'Summarise the bill below in the style of an official CRS or Legislative
24
+
25
+ Counsel''s Digest summary.
26
+
27
+
28
+ Cover, in this order:
29
+
30
+ - what the bill does: its substantive provisions, requirements, prohibitions
31
+
32
+ or authorisations;
33
+
34
+ - which existing statutes, if any, it amends, repeals or enacts, and how;
35
+
36
+ - any procedural or administrative steps it creates or changes;
37
+
38
+ - its stated purpose or findings, if the bill gives any.
39
+
40
+
41
+ Rules:
42
+
43
+ - Use only information contained in the bill text. Do not add background,
44
+
45
+ authorities or context from your own knowledge.
46
+
47
+ - Do not evaluate the bill or comment on its merits.
48
+
49
+ - Write continuous prose, not headings or bullet points.
50
+
51
+ - Aim for approximately {target_words} words.
52
+
53
+
54
+ Bill:
55
+
56
+ {document}
57
+
58
+
59
+ Summary:'
60
+ output:
61
+ directory: data/billsum
62
+ hub:
63
+ repo_id: fuzzylabs/billsum
64
+ private: false