Spaces:
Build error
Build error
Update flair_recognizer.py
Browse files- flair_recognizer.py +7 -0
flair_recognizer.py
CHANGED
@@ -54,6 +54,9 @@ class FlairRecognizer(EntityRecognizer):
|
|
54 |
"US_ITIN",
|
55 |
"US_BANK_NUMBER",
|
56 |
"US_DRIVER_LICENSE",
|
|
|
|
|
|
|
57 |
]
|
58 |
|
59 |
DEFAULT_EXPLANATION = "Identified as {} by Flair's Named Entity Recognition"
|
@@ -72,6 +75,10 @@ class FlairRecognizer(EntityRecognizer):
|
|
72 |
({"US_PASSPORT"}, {"US_PASSPORT"}),
|
73 |
({"CURRENCY"}, {"CURRENCY"}),
|
74 |
({"ROUTING_NUMBER"}, {"ROUTING_NUMBER"}),
|
|
|
|
|
|
|
|
|
75 |
# ({"US_ITIN"}, {"US_ITIN"}),
|
76 |
# ({"US_BANK_NUMBER"}, {"US_BANK_NUMBER"}),
|
77 |
# ({"US_DRIVER_LICENSE"}, {"US_DRIVER_LICENSE"}),
|
|
|
54 |
"US_ITIN",
|
55 |
"US_BANK_NUMBER",
|
56 |
"US_DRIVER_LICENSE",
|
57 |
+
"AGE",
|
58 |
+
"PASSWORD",
|
59 |
+
"SWIFT_CODE",
|
60 |
]
|
61 |
|
62 |
DEFAULT_EXPLANATION = "Identified as {} by Flair's Named Entity Recognition"
|
|
|
75 |
({"US_PASSPORT"}, {"US_PASSPORT"}),
|
76 |
({"CURRENCY"}, {"CURRENCY"}),
|
77 |
({"ROUTING_NUMBER"}, {"ROUTING_NUMBER"}),
|
78 |
+
({"AGE"}, {"AGE"}),
|
79 |
+
({"CURRENCY"}, {"CURRENCY"}),
|
80 |
+
({"SWIFT_CODE"}, {"SWIFT_CODE"}),
|
81 |
+
|
82 |
# ({"US_ITIN"}, {"US_ITIN"}),
|
83 |
# ({"US_BANK_NUMBER"}, {"US_BANK_NUMBER"}),
|
84 |
# ({"US_DRIVER_LICENSE"}, {"US_DRIVER_LICENSE"}),
|