Update README.md
Browse files
README.md
CHANGED
@@ -2,45 +2,48 @@
|
|
2 |
tags:
|
3 |
- generated_from_keras_callback
|
4 |
model-index:
|
5 |
-
- name: adult-content-
|
6 |
results: []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
---
|
8 |
-
|
9 |
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
10 |
probably proofread and complete it, then remove this comment. -->
|
11 |
|
12 |
# adult-content-identify-text
|
13 |
|
14 |
-
|
15 |
-
It achieves the following results on the evaluation set:
|
16 |
-
|
17 |
-
|
18 |
-
## Model description
|
19 |
-
|
20 |
-
More information needed
|
21 |
-
|
22 |
-
## Intended uses & limitations
|
23 |
-
|
24 |
-
More information needed
|
25 |
-
|
26 |
-
## Training and evaluation data
|
27 |
-
|
28 |
-
More information needed
|
29 |
-
|
30 |
-
## Training procedure
|
31 |
-
|
32 |
-
### Training hyperparameters
|
33 |
-
|
34 |
-
The following hyperparameters were used during training:
|
35 |
-
- optimizer: None
|
36 |
-
- training_precision: float32
|
37 |
-
|
38 |
-
### Training results
|
39 |
|
|
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
### Framework versions
|
43 |
|
44 |
-
- Transformers 4.
|
45 |
- TensorFlow 2.15.0
|
46 |
-
-
|
|
|
|
2 |
tags:
|
3 |
- generated_from_keras_callback
|
4 |
model-index:
|
5 |
+
- name: adult-content-classifier-text
|
6 |
results: []
|
7 |
+
pipeline_tag: text-classification
|
8 |
+
widget:
|
9 |
+
- text: 情趣睡衣 性感睡衣 角色扮演 惹火 緊身連身 漆皮膠衣 黑 L
|
10 |
+
example_title: adult_成人商品標題
|
11 |
+
- text: 男平織運動外套-立領外套 慢跑 路跑 藍黑螢光黃 L
|
12 |
+
example_title: regular_一般商品標題
|
13 |
+
- text: 'Passionate Embrace: Cross-Laced Sexy Silky Lingerie Sleepwear, White'
|
14 |
+
example_title: adult_product
|
15 |
+
- text: >-
|
16 |
+
Men's Plain Weave Sports Jacket - Stand Collar Jacket for Jogging and
|
17 |
+
Running, Blue-Black-Fluorescent Yellow, Size L
|
18 |
+
example_title: regular_product
|
19 |
+
license: mit
|
20 |
+
language:
|
21 |
+
- en
|
22 |
+
- zh
|
23 |
---
|
|
|
24 |
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
25 |
probably proofread and complete it, then remove this comment. -->
|
26 |
|
27 |
# adult-content-identify-text
|
28 |
|
29 |
+
Determine whether online sales products are adult content. Input: product title or description, Output results: 0 Unknown, 1 Adult Content, 2 General Merchandise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
+
判斷網路銷售商品是否屬於成人內容。輸入: 商品名稱文字,輸出結果: 0 未知, 1 成人內容, 2 一般商品。
|
32 |
|
33 |
+
# use transformers pipeline
|
34 |
+
```python
|
35 |
+
from transformers import pipeline
|
36 |
+
pipe = pipeline("text-classification", model="jiechau/adult-content-classifier")
|
37 |
+
#q = '男平織運動外套-立領外套 慢跑 路跑 藍黑螢光黃 L'
|
38 |
+
q = '情趣睡衣 性感睡衣 角色扮演 惹火 緊身連身 漆皮膠衣 黑 L'
|
39 |
+
result = pipe(q)
|
40 |
+
print(result)
|
41 |
+
# [{'label': 'adult_成人商品', 'score': 0.9994813799858093}]
|
42 |
+
```
|
43 |
|
44 |
### Framework versions
|
45 |
|
46 |
+
- Transformers 4.37.1
|
47 |
- TensorFlow 2.15.0
|
48 |
+
- Datasets 2.17.0
|
49 |
+
- Tokenizers 0.15.1
|