jiechau commited on
Commit
f5df8e8
1 Parent(s): bf24601

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -28
README.md CHANGED
@@ -2,46 +2,38 @@
2
  tags:
3
  - generated_from_keras_callback
4
  model-index:
5
- - name: adult-content-identify-text
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
- This model was trained from scratch on an unknown dataset.
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.37.1
45
  - TensorFlow 2.15.0
46
  - Datasets 2.17.0
47
- - Tokenizers 0.15.1
 
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
  ---
 
14
  <!-- This model card has been generated automatically according to the information Keras had access to. You should
15
  probably proofread and complete it, then remove this comment. -->
16
 
17
  # adult-content-identify-text
18
 
19
+ Determine whether online sales products are adult content. Input: product title or description, Output results: 0 Unknown, 1 Adult Content, 2 General Merchandise.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
+ 判斷網路銷售商品是否屬於成人內容。輸入: 商品名稱文字,輸出結果: 0 未知, 1 成人內容, 2 一般商品。
22
 
23
+ # use transformers pipeline
24
+ ```python
25
+ from transformers import pipeline
26
+ pipe = pipeline("text-classification", model="jiechau/adult-content-classifier")
27
+ #q = '男平織運動外套-立領外套 慢跑 路跑 藍黑螢光黃 L'
28
+ q = '情趣睡衣 性感睡衣 角色扮演 惹火 緊身連身 漆皮膠衣 黑 L'
29
+ result = pipe(q)
30
+ print(result)
31
+ # [{'label': 'adult_成人商品', 'score': 0.9994813799858093}]
32
+ ```
33
 
34
  ### Framework versions
35
 
36
  - Transformers 4.37.1
37
  - TensorFlow 2.15.0
38
  - Datasets 2.17.0
39
+ - Tokenizers 0.15.1