{"repo":"Gigabyte0x1337/BERT-ML.NET","free":true,"listed":false,"github":"https://github.com/Gigabyte0x1337/BERT-ML.NET","clone":"git clone https://github.com/Gigabyte0x1337/BERT-ML.NET.git","description":"BERT Model for dotnet ML","language":"C#","stars":101,"topics":["bert-model","ml","dotnet","api"],"license":"MIT","category":"machine-learning","readme_excerpt":"BERT-ML.NET Question and Answering (Q&A) BERT model implementation for ML.NET. An example of BERT model predictions in .NET Core/.NET Standard. Model https://github.com/onnx/models/tree/master/validated/text/machine comprehension/bert-squad Download the pre-trained BERT ONNX model by running getDependicies.sh . Or download the model to the BERT.WebApi/Model folder. GPU usage The project is setup to run on CPU. This allows the sample to run on machines without an Nvidia GPU. To run on an Nvidia CUDA GPU: Set hasGpu = true in OnnxModelConfigurator.cs Remove NuGet Microsoft.ML.OnnxRuntime.NoOpenMP Add NuGet Microsoft.ML.OnnxRuntime.Gpu Example queries When the solution runs, it will start an ASP.NET webservice at localhost:5001. Context Question Model Reply -- -- -- -- (link) Bob is walking through the woods collecting blueberries and strawberries to make a pie. What is his name? ✅ {\"tokens\":[\"bob\"],\"probability\":0.8884454} (link) Bob is walking through the woods collecting blueberries and strawberries to make a pie. What will he bring home? ✅ {\"tokens\":[\"blueberries\",\"and\",\"strawberries\"],\"probability\":0.4070111} (link) Bob is walking through the woods collecting blueberries and strawberries to make a pie. Where is Bob? ✅ {\"tokens\":[\"walking\",\"through\",\"the\",\"woods\"],\"probability\":0.6123137} (link) Bob is walking through the woods collecting blueberries and strawberries to make a pie. What will he bake? ❌ {\"tokens\":[\"blueberries\",\"and\",\"strawberries\"],\"probability\":0.48385787}","default_branch":null,"files":null,"tree":[],"storefront":"/r/Gigabyte0x1337","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Gigabyte0x1337/BERT-ML.NET/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}