cools commited on
Commit
47844f6
·
1 Parent(s): bd3c634

Update Parser.py

Browse files
Files changed (1) hide show
  1. Parser.py +1 -1
Parser.py CHANGED
@@ -86,7 +86,7 @@ def get_split_data(split):
86
  first_sent_text = " ".join([t.text for t in first_sent])
87
  ents = nlp(first_sent_text).ents
88
  person_ents = [e.text.lower().split('tice')[-1].strip().capitalize() for e in ents if e.label_ == "PERSON"]
89
- if "the chief justice" in first_sent_text:
90
  person_ents.append("Chief")
91
  opinion_type, author, joining = None, None, []
92
  if "delivered" in first_sent_text:
 
86
  first_sent_text = " ".join([t.text for t in first_sent])
87
  ents = nlp(first_sent_text).ents
88
  person_ents = [e.text.lower().split('tice')[-1].strip().capitalize() for e in ents if e.label_ == "PERSON"]
89
+ if "chief justice" in first_sent_text:
90
  person_ents.append("Chief")
91
  opinion_type, author, joining = None, None, []
92
  if "delivered" in first_sent_text: