Downloads · 30 days
10
2% of all-time downloads
NchuNLP/Agriculture-Classification
Agriculture-Classification is a text classification model from NchuNLP. Use it when you need a label for a piece of text. It is set up for transformers.
This is a model used for classifying whether it is a agricultural question or not.
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
663
Public
Repo size
818 MB
Likes
2
Public
Click a slice to open those files.
.bin409 MB · 100%
From the Hugging Face model README
This is a model used for classifying whether it is a agricultural question or not.
from transformers import BertTokenizer, BertForSequenceClassification, pipeline
model_name = "NchuNLP/Agriculture-Classification"
tokenizer = BertTokenizer.from_pretrained(model_name)
model = BertForSequenceClassification.from_pretrained(model_name, num_labels=2)
# Get predictions
nlp = pipeline('text-classification', model=model, tokenizer=tokenizer)
query = "水稻生長的適宜溫度是多少?"
res = nlp(query)
Peng-Yi Lin: [email protected]
Yao-Chung Fan: [email protected]
中興大學自然語言處理實驗室研究方向圍繞於深度學習技術在文字資料探勘 (Text Mining) 與自然語言處理 (Natural Language Processing) 方面之研究,目前實驗室成員的研究主題著重於機器閱讀理解 (Machine Reading Comprehension) 以及自然語言生成 (Natural Language Generation) 兩面向。