Update Parser.py
Browse files
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 "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.lower():
|
| 90 |
person_ents.append("Chief")
|
| 91 |
opinion_type, author, joining = None, None, []
|
| 92 |
if "delivered" in first_sent_text:
|