Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,41 @@
|
|
1 |
---
|
2 |
license: mit
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: mit
|
3 |
+
library_name: unity-sentis
|
4 |
+
pipeline_tag: zero-shot-classification
|
5 |
---
|
6 |
+
|
7 |
+
|
8 |
+
# Deberta v3 zeroshot for Unity Sentis
|
9 |
+
|
10 |
+
This is the [DeBERTaV3 Model](https://huggingface.co/MoritzLaurer/deberta-v3-base-zeroshot-v1.1-all-33) in the Sentis format to run on Unity 2023.
|
11 |
+
The model can do one universal classification task: determine whether a hypothesis is "true" or "not true" given a text.
|
12 |
+
|
13 |
+
There are more models of different sizes that are compatible made by [MoritzLaurer](https://huggingface.co/MoritzLaurer)
|
14 |
+
|
15 |
+
## How to Use
|
16 |
+
|
17 |
+
* Create a new scene in Unity 2023
|
18 |
+
* Add the DebertaV3.cs file to a GameObject in the scene
|
19 |
+
* Assign model and vocabulary
|
20 |
+
* Press play, the classification scores will show in the Console
|
21 |
+
|
22 |
+
# Example Inputs
|
23 |
+
```
|
24 |
+
text = "Angela Merkel is a politician in Germany and leader of the CDU"
|
25 |
+
|
26 |
+
classes = ["This example is about politics", "This example is about economy", "This example is about entertainment", "This example is about environment"]
|
27 |
+
```
|
28 |
+
|
29 |
+
# Example Outputs
|
30 |
+
```
|
31 |
+
[politics] Entailment Score: 0.9998765
|
32 |
+
|
33 |
+
[economy] Entailment Score: 0.0008297313
|
34 |
+
|
35 |
+
[entertainment] Entailment Score: 4.86502E-05
|
36 |
+
|
37 |
+
[environment] Entailment Score: 6.163981E-05
|
38 |
+
```
|
39 |
+
|
40 |
+
## Unity Sentis
|
41 |
+
Sentis is the inference engine for Unity. More can be found about it [here](https://unity.com/products/sentis)
|