mjwong commited on
Commit
554bd2e
1 Parent(s): e01eee6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +0 -12
README.md CHANGED
@@ -52,12 +52,6 @@ You can then use this pipeline to classify sequences into any of the class names
52
  sequence_to_classify = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
53
  candidate_labels = ["politics", "economy", "entertainment", "environment"]
54
  classifier(sequence_to_classify, candidate_labels)
55
- #{'sequence': 'Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU',
56
- # 'labels': ['politics', 'entertainment', 'economy', 'environment'],
57
- # 'scores': [0.8246253132820129,
58
- # 0.06991120427846909,
59
- # 0.06377045065164566,
60
- # 0.04169302061200142]}
61
  ```
62
 
63
  If more than one candidate label can be correct, pass `multi_class=True` to calculate each class independently:
@@ -65,12 +59,6 @@ If more than one candidate label can be correct, pass `multi_class=True` to calc
65
  ```python
66
  candidate_labels = ["politics", "economy", "entertainment", "environment"]
67
  classifier(sequence_to_classify, candidate_labels, multi_label=True)
68
- #{'sequence': 'Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU',
69
- # 'labels': ['politics', 'entertainment', 'economy', 'environment'],
70
- # 'scores': [0.9309880137443542,
71
- # 0.06579376757144928,
72
- # 0.0584840327501297,
73
- # 0.007538211066275835]}
74
  ```
75
 
76
  ### Eval results
 
52
  sequence_to_classify = "Angela Merkel ist eine Politikerin in Deutschland und Vorsitzende der CDU"
53
  candidate_labels = ["politics", "economy", "entertainment", "environment"]
54
  classifier(sequence_to_classify, candidate_labels)
 
 
 
 
 
 
55
  ```
56
 
57
  If more than one candidate label can be correct, pass `multi_class=True` to calculate each class independently:
 
59
  ```python
60
  candidate_labels = ["politics", "economy", "entertainment", "environment"]
61
  classifier(sequence_to_classify, candidate_labels, multi_label=True)
 
 
 
 
 
 
62
  ```
63
 
64
  ### Eval results