// Path: wordnet-response/src/main/java/com/apitore/banana/response/de/sciss/ws4j/WordnetSimilarityResponseEntity.java
// @ApiModel
// @Data
// @EqualsAndHashCode(callSuper=false)
// public class WordnetSimilarityResponseEntity extends BaseResponseEntity {
// 
//   /**
//    *
//    */
//   private static final long serialVersionUID = 4749138420625233969L;
// 
//   @ApiModelProperty(required=true, value="Word1")
//   private String word1="";
//   @ApiModelProperty(required=false, value="Pos1")
//   private String pos1="";
//   @ApiModelProperty(required=true, value="Word2")
//   private String word2="";
//   @ApiModelProperty(required=false, value="Pos2")
//   private String pos2="";
//   @ApiModelProperty(required=true, value="Method")
//   private String method="";
//   @ApiModelProperty(required=true, value="Similarity")
//   private double similarity=-1;
// 
// }


import java.util.HashMap;
import java.util.Map;
import org.springframework.web.client.RestTemplate;
import com.apitore.banana.response.de.sciss.ws4j.WordnetSimilarityResponseEntity;
import com.apitore.banana.utils.UrlFormatter;
package com.apitore.banana.response.de.sciss.ws4j.sample;






/**
 * @author Keigo Hattori
 *
 * 単語の意味的な類似度を評価します。
 * 評価手法は8種類あります。
 * hirststonge, leacockchodorow, lesk, lin, path, resnik, wupalmer
 */
public class Api47WordNetSimilarityExample {

  static String ENDPOINT     = "https://api.apitore.com/api/47/wordnet-similarity/hirststonge";
  static String ACCESS_TOKEN = "YOUR-ACCESS-TOKEN";

  public static void main(String[] args) {
    RestTemplate restTemplate = new RestTemplate();
    Map<String, String> params = new HashMap<String, String>();
    params.put("access_token", ACCESS_TOKEN);
    params.put("word1", "犬");
    params.put("pos1", "n");
    params.put("word2", "猟犬");
    params.put("pos2", "n");
    String url = UrlFormatter.format(ENDPOINT, params);

// Path: wordnet-response/src/main/java/com/apitore/banana/response/de/sciss/ws4j/WordnetSimilarityResponseEntity.java
// @ApiModel
// @Data
// @EqualsAndHashCode(callSuper=false)
// public class WordnetSimilarityResponseEntity extends BaseResponseEntity {
// 
//   /**
//    *
//    */
//   private static final long serialVersionUID = 4749138420625233969L;
// 
//   @ApiModelProperty(required=true, value="Word1")
//   private String word1="";
//   @ApiModelProperty(required=false, value="Pos1")
//   private String pos1="";
//   @ApiModelProperty(required=true, value="Word2")
//   private String word2="";
//   @ApiModelProperty(required=false, value="Pos2")
//   private String pos2="";
//   @ApiModelProperty(required=true, value="Method")
//   private String method="";
//   @ApiModelProperty(required=true, value="Similarity")
//   private double similarity=-1;
// 
// }


// Path: wordnet-response/src/main/java/com/apitore/banana/response/de/sciss/ws4j/sample/Api47WordNetSimilarityExample.java
import java.util.HashMap;
import java.util.Map;
import org.springframework.web.client.RestTemplate;
import com.apitore.banana.response.de.sciss.ws4j.WordnetSimilarityResponseEntity;
import com.apitore.banana.utils.UrlFormatter;

package com.apitore.banana.response.de.sciss.ws4j.sample;






/**
 * @author Keigo Hattori
 *
 * 単語の意味的な類似度を評価します。
 * 評価手法は8種類あります。
 * hirststonge, leacockchodorow, lesk, lin, path, resnik, wupalmer
 */
public class Api47WordNetSimilarityExample {

  static String ENDPOINT     = "https://api.apitore.com/api/47/wordnet-similarity/hirststonge";
  static String ACCESS_TOKEN = "YOUR-ACCESS-TOKEN";

  public static void main(String[] args) {
    RestTemplate restTemplate = new RestTemplate();
    Map<String, String> params = new HashMap<String, String>();
    params.put("access_token", ACCESS_TOKEN);
    params.put("word1", "犬");
    params.put("pos1", "n");
    params.put("word2", "猟犬");
    params.put("pos2", "n");
    String url = UrlFormatter.format(ENDPOINT, params);

    WordnetSimilarityResponseEntity response =