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

Update Parser.py

Browse files
Files changed (1) hide show
  1. Parser.py +1 -3
Parser.py CHANGED
@@ -59,9 +59,7 @@ def get_splits(folderpath):
59
  full_body_text = "\n".join(body_texts).replace('-', '')
60
  full_body_text = correct(full_body_text, "justice")
61
 
62
- split_p = re.compile(
63
- '((\n|^)\s*Per Curiam\.\s*\n)|((\n|^)\s*(Mr\.\s*)?Justice[A-z\s\n,]*delivered the opinion)|((\n|^)\s*(mr\.\s*)?justice[A-Za-z\n\s,–-]*(concurring|dissenting)[A-Za-z\n\s,–]*\.)',
64
- re.IGNORECASE)
65
  splits_m = list(re.finditer(split_p, full_body_text))
66
  splits = []
67
 
 
59
  full_body_text = "\n".join(body_texts).replace('-', '')
60
  full_body_text = correct(full_body_text, "justice")
61
 
62
+ split_p = re.compile('((\n|^)\s*Per Curiam\.\s*\n)|((\n|^)\s*(Mr\.\s*(chief)?\s*)?Justice[A-z\s\n,]*delivered the opinion)|((\n|^)\s*(mr\.\s*)?justice[A-Za-z\n\s,–-]*(concurring|dissenting)[A-Za-z\n\s,–]*\.)', re.IGNORECASE)
 
 
63
  splits_m = list(re.finditer(split_p, full_body_text))
64
  splits = []
65