|
@@ -23,6 +23,20 @@ def address_extraction(content):
|
|
|
return "None"
|
|
|
|
|
|
|
|
|
+def refer_exteraction(content):
|
|
|
+ """
|
|
|
+ extract referals from the documents.
|
|
|
+ """
|
|
|
+ regex = r"(\w+)\srefer?s\sto(.*?)as\s"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ try:
|
|
|
+ print("group1", re.search(regex, content).groups()[0])
|
|
|
+ except:
|
|
|
+ return "None"
|
|
|
+
|
|
|
+
|
|
|
def case_number_extraction(content):
|
|
|
|
|
|
|