Instructions to use myml/toutiao with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use myml/toutiao with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="myml/toutiao")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("myml/toutiao") model = AutoModelForSequenceClassification.from_pretrained("myml/toutiao", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,19 @@
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
widget:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
# 中文新闻分类模型
|
|
@@ -44,4 +49,4 @@ LABEL_13 国际 国际
|
|
| 44 |
LABEL_14 证券 股票
|
| 45 |
LABEL_15 农业 三农
|
| 46 |
LABEL_16 电竞 游戏
|
| 47 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
license: mit
|
| 3 |
widget:
|
| 4 |
+
- text: 只要关羽不捣乱,峡谷4V5也不怕
|
| 5 |
+
example_title: 只要关羽不捣乱,峡谷4V5也不怕
|
| 6 |
+
- text: 贵圈这场大戏真是活久见
|
| 7 |
+
example_title: 贵圈这场大戏真是活久见
|
| 8 |
+
- text: 职业操盘手不可外传的成交量买卖精髓,字字珠玑!
|
| 9 |
+
example_title: 职业操盘手不可外传的成交量买卖精髓,字字珠玑!
|
| 10 |
+
- text: 新疆呼图壁县举办第二届“渔之悦杯”垂钓比赛
|
| 11 |
+
example_title: 新疆呼图壁县举办第二届“渔之悦杯”垂钓比赛
|
| 12 |
+
datasets:
|
| 13 |
+
- fourteenBDr/toutiao
|
| 14 |
+
language:
|
| 15 |
+
- zh
|
| 16 |
+
pipeline_tag: text-classification
|
| 17 |
---
|
| 18 |
|
| 19 |
# 中文新闻分类模型
|
|
|
|
| 49 |
LABEL_14 证券 股票
|
| 50 |
LABEL_15 农业 三农
|
| 51 |
LABEL_16 电竞 游戏
|
| 52 |
+
```
|