Instructions to use taeminlee/gliner_ko with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- GLiNER
How to use taeminlee/gliner_ko with GLiNER:
from gliner import GLiNER model = GLiNER.from_pretrained("taeminlee/gliner_ko") - Notebooks
- Google Colab
- Kaggle
Fixed the issue where `tt_labels` was mistakenly written as `labels`
#3
by secsilm - opened
README.md
CHANGED
|
@@ -39,7 +39,7 @@ text = """
|
|
| 39 |
|
| 40 |
tta_labels = ["ARTIFACTS", "ANIMAL", "CIVILIZATION", "DATE", "EVENT", "STUDY_FIELD", "LOCATION", "MATERIAL", "ORGANIZATION", "PERSON", "PLANT", "QUANTITY", "TIME", "TERM", "THEORY"]
|
| 41 |
|
| 42 |
-
entities = model.predict_entities(text,
|
| 43 |
|
| 44 |
for entity in entities:
|
| 45 |
print(entity["text"], "=>", entity["label"])
|
|
|
|
| 39 |
|
| 40 |
tta_labels = ["ARTIFACTS", "ANIMAL", "CIVILIZATION", "DATE", "EVENT", "STUDY_FIELD", "LOCATION", "MATERIAL", "ORGANIZATION", "PERSON", "PLANT", "QUANTITY", "TIME", "TERM", "THEORY"]
|
| 41 |
|
| 42 |
+
entities = model.predict_entities(text, tta_labels)
|
| 43 |
|
| 44 |
for entity in entities:
|
| 45 |
print(entity["text"], "=>", entity["label"])
|