Android Open Source - wit-android-sdk Wit Outcome






From Project

Back to project page wit-android-sdk.

License

The source code is released under:

/** * Copyright (c) 2014, Wit.ai, Inc. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to * use, copy, modify, and distribute this software in source c...

If you think the Android project wit-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package ai.wit.sdk.model;
/*w  w  w. j a  v a 2  s .c  o  m*/
import com.google.gson.JsonElement;
import com.google.gson.annotations.SerializedName;

import java.util.HashMap;

/**
 * Outcome class for deserialization purpose
 * Created by Wit on 5/30/13.
 */
public class WitOutcome {

    @SerializedName("intent")
    private String _intent;

    @SerializedName("entities")
    private HashMap<String, JsonElement> _entities;

    @SerializedName("_text")
    private String _text;

    @SerializedName("confidence")
    private double _confidence;

    public double get_confidence() {
        return _confidence;
    }

    public String get_intent() {
        return _intent;
    }

    public HashMap<String, JsonElement> get_entities() {
        return _entities;
    }

    public String get_text() {
        return _text;
    }

    //  {
    //        "intent": "restaurant_lookup",
    //        "entities": {
    //    "cuisine": {
    //        "value": "chinese",
    //        "type": "cuisines",
    //        "body": "from Pekin"
    //        },
    //        "location": {
    //        "value": [
    //        90.785,
    //        45.897
    //        ],
    //        "type": "location",
    //        "body": "close to Montmartre"
    //        }

}




Java Source Code List

ai.wit.sdk.IWitCoordinator.java
ai.wit.sdk.IWitListener.java
ai.wit.sdk.WitContextSetter.java
ai.wit.sdk.WitMessageRequestTask.java
ai.wit.sdk.WitMic.java
ai.wit.sdk.WitRequest.java
ai.wit.sdk.WitSpeechRequestTask.java
ai.wit.sdk.WitTest.java
ai.wit.sdk.Wit.java
ai.wit.sdk.model.WitOutcome.java
ai.wit.sdk.model.WitResponse.java