Spaces:
Sleeping
Sleeping
OnlyBiggg
commited on
Commit
·
05b674b
1
Parent(s):
f7b21c2
fix combine token
Browse files- app/ner/services/ner.py +1 -1
app/ner/services/ner.py
CHANGED
|
@@ -56,7 +56,7 @@ class NER:
|
|
| 56 |
|
| 57 |
return extracted_entities
|
| 58 |
|
| 59 |
-
def _combine_token(tokens: list[str]) -> str:
|
| 60 |
"""Combines tokens into a single string, removing leading hashtags from the first token if present.
|
| 61 |
Args:
|
| 62 |
tokens (list[str]): List of tokens to combine.
|
|
|
|
| 56 |
|
| 57 |
return extracted_entities
|
| 58 |
|
| 59 |
+
def _combine_token(self, tokens: list[str]) -> str:
|
| 60 |
"""Combines tokens into a single string, removing leading hashtags from the first token if present.
|
| 61 |
Args:
|
| 62 |
tokens (list[str]): List of tokens to combine.
|