rcai commited on
Commit
1f69b4c
·
verified ·
1 Parent(s): d6b7e8f

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +12 -0
test.py CHANGED
@@ -5,6 +5,18 @@ import json
5
  import pandas as pd
6
  import re
7
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  # The text output from the LLM (you would replace this with the actual output)
9
  llm_output = """
10
  ... [Your provided text goes here] ...
 
5
  import pandas as pd
6
  import re
7
 
8
+ def filter_medical_terms(lines):
9
+ terms = ['er', 'pr', 'her2', 'mammaprint', 'oncotype']
10
+ filtered_lines = []
11
+
12
+ for line in lines:
13
+ if any(term in line.lower() for term in terms):
14
+ filtered_lines.append(line.strip())
15
+
16
+ return filtered_lines
17
+
18
+
19
+
20
  # The text output from the LLM (you would replace this with the actual output)
21
  llm_output = """
22
  ... [Your provided text goes here] ...