Instructions to use unity/inference-engine-minilm-v6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- unity-sentis
How to use unity/inference-engine-minilm-v6 with unity-sentis:
string modelName = "[Your model name here].sentis"; Model model = ModelLoader.Load(Application.streamingAssetsPath + "/" + modelName); IWorker engine = WorkerFactory.CreateWorker(BackendType.GPUCompute, model); // Please see provided C# file for more details
- Notebooks
- Google Colab
- Kaggle
Fix text splitting
#2
by Ethylene - opened
- RunMiniLM.cs +1 -1
RunMiniLM.cs
CHANGED
|
@@ -29,7 +29,7 @@ public class RunMiniLM : MonoBehaviour
|
|
| 29 |
|
| 30 |
void Start()
|
| 31 |
{
|
| 32 |
-
tokens = vocabAsset.text.Split("\r\n");
|
| 33 |
|
| 34 |
engine = CreateMLModel();
|
| 35 |
|
|
|
|
| 29 |
|
| 30 |
void Start()
|
| 31 |
{
|
| 32 |
+
tokens = vocabAsset.text.Split(new[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries);
|
| 33 |
|
| 34 |
engine = CreateMLModel();
|
| 35 |
|