Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.26 KB

README.md

File metadata and controls

27 lines (24 loc) · 1.26 KB

WitSharp

Usage

Creating new application:

var Client = new WitClient("MY-APPLICATION-TOKEN");
var Create = await Client.Application.CreateAsync("WitSharp", Language.EN, true).ConfigureAwait(false);
Console.WriteLine(Create.AppId);

Getting sentence meaning:

var Meaning = Client.Training.SentenceMeaningAsync(new SentenceModel {
    Message = "How many people between monday and friday>",
    MaxTraits = 4
    }).ConfigureAwait(false);
Console.WriteLine(Meaning.Entities.Intents.FirstOrDefault().Value);