amielle commited on
Commit
5bead87
1 Parent(s): b796027

feat: Add base helper modules

Browse files
util/__pycache__/parser.cpython-39.pyc ADDED
Binary file (160 Bytes). View file
 
util/__pycache__/summarizer.cpython-39.pyc ADDED
Binary file (1.22 kB). View file
 
util/parser.py ADDED
File without changes
util/summarizer.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # TODO: add pre-trained summarizer models
3
+ # Placeholder text for testing input
4
+ test_text = """
5
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
6
+ """
7
+
8
+ def generate_abs_summary(abstract, min_char_abs):
9
+ return "Abstract" + test_text
10
+
11
+
12
+ def generate_bg_summary(background, min_char_bg):
13
+ return "Background" + test_text
14
+
15
+
16
+ def generate_claims_summary(claims, min_char_claims):
17
+ return "Claims" + test_text