This repo contains a client library and sample code to demonstrate Microsoft’s state-of-the-art language modeling APIs, which automate a variety of standard natural language processing tasks. Learn more about the Web Language Model API at our documentation.
To obtain a subscription key for WebLM, visit Microsoft Cognitive Services subscription and sign up for free using your Microsoft account. Then open, modify, build, and run the accompanying Visual Studio solution. This sample is a C# Windows console application demonstrating the use of the Microsoft Cognitive Services Web Language Model API.
-
Start Microsoft Visual Studio 2015 and select File > Open > Project/Solution.
-
Starting in the folder where you clone the repository, go to the WebLM > Windows Folder.
-
Double-click the Visual Studio 2015 Solution file WebLMSample.sln.
-
Paste your Microsoft Cognitive Services WebLM subscription key into the LMServiceClient constructor parameter value in Program.cs.
-
Press Ctrl+Shift+B, or select Build > Build Solution.
After the build is complete, press F5 to run the sample.
A number of self-explanatory lines will be printed on the console, showing the results received from the WebLM service.
Press any key to exit the app.
We welcome contributions and are always looking for new SDKs, input, and suggestions. Feel free to file issues on the repo and we'll address them as we can. You can also learn more about how you can help on the Contribution Rules & Guidelines.
For questions, feedback, or suggestions about Microsoft Cognitive Services, feel free to reach out to us directly.
All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more details, see LICENSE.
Sample images are licensed separately, please refer to LICENSE-IMAGE.