Update Parser.py
Browse files
Parser.py
CHANGED
|
@@ -179,6 +179,8 @@ class Case:
|
|
| 179 |
|
| 180 |
def get_date(self):
|
| 181 |
print("Extracting Date")
|
|
|
|
|
|
|
| 182 |
doc = nlp(self.pre.body_text[0:2000])
|
| 183 |
sents = list(doc.sents)
|
| 184 |
for s in sents:
|
|
|
|
| 179 |
|
| 180 |
def get_date(self):
|
| 181 |
print("Extracting Date")
|
| 182 |
+
if self.pre.body_text is None or self.pre.body_text == "":
|
| 183 |
+
print(self.paginated_dict)
|
| 184 |
doc = nlp(self.pre.body_text[0:2000])
|
| 185 |
sents = list(doc.sents)
|
| 186 |
for s in sents:
|