Commit
·
0bc4f0b
1
Parent(s):
4378340
update
Browse files- generic_ner.py +1 -1
generic_ner.py
CHANGED
|
@@ -365,7 +365,7 @@ stop_words = stopwords(["en", "fr", "de"])
|
|
| 365 |
import string
|
| 366 |
|
| 367 |
|
| 368 |
-
def remove_trailing_stopwords(entities
|
| 369 |
"""
|
| 370 |
This function removes stopwords and punctuation from both the beginning and end of each entity's text
|
| 371 |
and repairs the lOffset and rOffset accordingly.
|
|
|
|
| 365 |
import string
|
| 366 |
|
| 367 |
|
| 368 |
+
def remove_trailing_stopwords(entities):
|
| 369 |
"""
|
| 370 |
This function removes stopwords and punctuation from both the beginning and end of each entity's text
|
| 371 |
and repairs the lOffset and rOffset accordingly.
|