Update README.md
Browse files
README.md
CHANGED
@@ -116,8 +116,8 @@ def get_tags(self, text, generate_kwargs):
|
|
116 |
return list(set(itertools.chain(*output)))
|
117 |
|
118 |
def tag(self, text, max_len, generate_kwargs):
|
119 |
-
texts =
|
120 |
-
all_tags = [
|
121 |
flatten_tags = itertools.chain(*all_tags)
|
122 |
return list(set(flatten_tags))
|
123 |
|
|
|
116 |
return list(set(itertools.chain(*output)))
|
117 |
|
118 |
def tag(self, text, max_len, generate_kwargs):
|
119 |
+
texts = get_texts(text, max_len)
|
120 |
+
all_tags = [get_tags(text, generate_kwargs) for text in texts]
|
121 |
flatten_tags = itertools.chain(*all_tags)
|
122 |
return list(set(flatten_tags))
|
123 |
|