Update README.md
Browse files
README.md
CHANGED
@@ -36,11 +36,11 @@ Confusion Matrix:
|
|
36 |
The model supports a maximum sequence length of 512 tokens.
|
37 |
## How to Use
|
38 |
```python
|
|
|
39 |
import fasttext
|
40 |
from khmernltk import word_tokenize
|
41 |
|
42 |
-
|
43 |
-
model = fasttext.load_model('/Users/tykea/Desktop/fasttext-finetuned/sentiment_model.ftz')
|
44 |
|
45 |
def predict(text):
|
46 |
# Tokenize the text
|
|
|
36 |
The model supports a maximum sequence length of 512 tokens.
|
37 |
## How to Use
|
38 |
```python
|
39 |
+
from huggingface_hub import hf_hub_download
|
40 |
import fasttext
|
41 |
from khmernltk import word_tokenize
|
42 |
|
43 |
+
model = fasttext.load_model(hf_hub_download("tykea/khmer-fasttext-sentiment-analysis", "model.bin"))
|
|
|
44 |
|
45 |
def predict(text):
|
46 |
# Tokenize the text
|