Skip to content

Latest commit

 

History

History
 
 

Windows

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Microsoft Cognitive Services Web Language Model API SDK and sample

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.

Getting started

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.

Build the sample

  1. Start Microsoft Visual Studio 2015 and select File > Open > Project/Solution.

  2. Starting in the folder where you clone the repository, go to the WebLM > Windows Folder.

  3. Double-click the Visual Studio 2015 Solution file WebLMSample.sln.

  4. Paste your Microsoft Cognitive Services WebLM subscription key into the LMServiceClient constructor parameter value in Program.cs.

  5. Press Ctrl+Shift+B, or select Build > Build Solution.

Run the sample

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.

Contributing

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.

License

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.