Spaces:
Sleeping
Sleeping
Dataset with more emojis
Browse files- emojis_dataset.json +0 -0
- model.py +1 -1
emojis_dataset.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.py
CHANGED
|
@@ -13,7 +13,7 @@ class EmojiPredictor:
|
|
| 13 |
|
| 14 |
def _vectorize_descriptions(self):
|
| 15 |
# Get the sentence embedding for each description
|
| 16 |
-
descriptions = [item['
|
| 17 |
return self.model.encode(descriptions)
|
| 18 |
|
| 19 |
def predict(self, text):
|
|
|
|
| 13 |
|
| 14 |
def _vectorize_descriptions(self):
|
| 15 |
# Get the sentence embedding for each description
|
| 16 |
+
descriptions = [item['description'] for item in self.emoji_data]
|
| 17 |
return self.model.encode(descriptions)
|
| 18 |
|
| 19 |
def predict(self, text):
|