BuildIt.CognitiveServices.AcademicSearchAPIExtensions.Interpret C# (CSharp) Method

Interpret() public static method

The interpret REST API takes an end user query string (i.e., a query entered by a user of your application) and returns formatted interpretations of user intent based on the Academic Graph data and the Academic Grammar. To provide an interactive experience, you can call this method repeatedly after each character entered by the user. In that case, you should set the complete parameter to 1 to enable auto-complete suggestions. If your application does not want auto-completion, you should set the complete parameter to 0.
public static Interpret ( this operations, string query, bool complete, double count = 10, double offset = default(double?), double timeout = default(double?), string model = "latest", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
query string /// Query entered by user. If complete is set to 1, query will be interpreted /// as a prefix for generating query auto-completion suggestions. ///
complete bool /// 1 means that auto-completion suggestions are generated based on the /// grammar and graph data. ///
count double /// Maximum number of interpretations to return. ///
offset double /// Index of the first interpretation to return. For example, /// count=2&offset=0 returns interpretations 0 and 1. /// count=2&offset=2 returns interpretations 2 and 3. ///
timeout double /// Timeout in milliseconds. Only interpretations found before the timeout has /// elapsed are returned. ///
model string /// Name of the model that you wish to query. Currently, the value defaults to /// "latest". /// . Possible values include: 'beta-2015', 'latest' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
return void
            public static void Interpret(this IAcademicSearchAPI operations, string query, bool? complete = 0, double? count = 10, double? offset = default(double?), double? timeout = default(double?), string model = "latest", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string))
            {
                System.Threading.Tasks.Task.Factory.StartNew(s => ((IAcademicSearchAPI)s).InterpretAsync(query, complete, count, offset, timeout, model, subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None,  System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
            }