|
@@ -0,0 +1,18 @@
|
|
|
+import pytest
|
|
|
+
|
|
|
+import spacy
|
|
|
+from spacy import displacy
|
|
|
+
|
|
|
+# import here your file
|
|
|
+
|
|
|
+nlp = spacy.load("en_core_web_trf")
|
|
|
+
|
|
|
[email protected]('text, expected', [
|
|
|
+ ('Regex for redacted phone numbers with extra info for PlayStation', ['PhoneNumberRegex', 'RedactedPhoneNumberRegex'])
|
|
|
+])
|
|
|
+def test_leaf_strategy(text, expected):
|
|
|
+ doc = nlp(text)
|
|
|
+
|
|
|
+ # result = leaf_strategy(doc)
|
|
|
+
|
|
|
+ # assert result == expected
|