Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svlandeg committed Jan 19, 2024
1 parent ffb8996 commit eabe0ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tutorials/llm_clinical_trials/scripts/trial_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Patient group: <name>
Number of patients in the group: <number>
Treatment drug or substance: <drug>
Treatment dose: <drug>
Treatment dose: <dose>
Treatment frequency of administration: <frequency>
Treatment duration: <duration>
Outcome: <outcome>
Expand Down Expand Up @@ -114,9 +114,9 @@ def parse_responses(
matcher.add("Patient_Group", [nlp.make_doc(text) for text in patient_groups])
matcher.add("Patient_Number", [nlp.make_doc(text) for text in patient_numbers])
matcher.add("Treatment_Drug", [nlp.make_doc(text) for text in drugs])
matcher.add("Dose", [nlp.make_doc(text) for text in doses])
matcher.add("Frequency", [nlp.make_doc(text) for text in frequencies])
matcher.add("Duration", [nlp.make_doc(text) for text in durations])
matcher.add("Treatment_Dose", [nlp.make_doc(text) for text in doses])
matcher.add("Treatment_Frequency", [nlp.make_doc(text) for text in frequencies])
matcher.add("Treatment_Duration", [nlp.make_doc(text) for text in durations])
matcher.add("Outcome", [nlp.make_doc(text) for text in outcomes])

matches = matcher(doc, as_spans=True)
Expand Down

0 comments on commit eabe0ed

Please sign in to comment.