@@ -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
@@ -6,7 +6,7 @@
static escape(text: string): string
/**
- * Regex for redacted phone numbers with extra info for Baan-kaidee (TO BE REMOVED).
+ * Regex for redacted phone numbers with extra info for PlayStation (TO BE REMOVED).
*/
const PHONE_PLACEHOLDER_NUMBER: RegExp = /\[redacted phone number\](#{0,1}\(([()_\-+\d ]*)\)){0,1}/;
@@ -0,0 +1,9 @@
+def leaf_strategy(doc):
+ """
+ Should return an arrays of variable names based on leaf strategy
+ :param doc: spacy document
+ :return Array of strings
+ pass
@@ -0,0 +1,30 @@
+def camel_case(word):
+def upper_case(word):
+def snake_case(word):
+def constants(word):
+ return upper_case(snake_case(word))
+def variable(word):
+def function(word):
+def classname(word):
+def method(word):