water.bindings.pojos.SynonymV3 Maven / Gradle / Ivy
package water.bindings.pojos;
import com.google.gson.Gson;
public class SynonymV3 extends Schema {
/** A word2vec model key. */
public ModelKeyV3 key;
/** The target string to find synonyms. */
public String target;
/** Find the top `cnt` synonyms of the target word. */
public int cnt;
/** The synonyms. */
public String[] synonyms;
/** The cosine similarities. */
public float[] cos_sim;
public SynonymV3() {
key = null;
target = "";
cnt = 0;
synonyms = null;
cos_sim = null;
}
/** Return the contents of this object as a JSON String. */
@Override
public String toString() {
return new Gson().toJson(this);
}
}