prashant
commited on
Commit
•
ac18b03
1
Parent(s):
ca8d27c
error fix
Browse files- utils/lexical_search.py +1 -1
utils/lexical_search.py
CHANGED
@@ -151,7 +151,7 @@ def runRegexMatcher(token_list:List[str], document:Text):
|
|
151 |
|
152 |
return matches, document
|
153 |
|
154 |
-
def spacyAnnotator(matches: List[List[int]], document:spacy.
|
155 |
"""
|
156 |
This is spacy Annotator and needs spacy.doc
|
157 |
Annotates the text in the document defined by list of [start index, end index]
|
|
|
151 |
|
152 |
return matches, document
|
153 |
|
154 |
+
def spacyAnnotator(matches: List[List[int]], document:spacy.tokens.doc.Doc):
|
155 |
"""
|
156 |
This is spacy Annotator and needs spacy.doc
|
157 |
Annotates the text in the document defined by list of [start index, end index]
|