class_docstr: This class is used to prepare and separate word similarity datasets.
class_docstr_tok: ["This","class","is","used","to","prepare","and","separate","word","similarity","datasets","."]
docstr: This function save the result computed by a similarity metric
  :param cor: correlation with human rating
  :param sim_values: similarity scores for word pairs
  :param sim_name: the name of similarity metric
  :param dataset_name: the name of word similarity dataset
  :return:
docstr_tok: ["This","function","save","the","result","computed","by","a","similarity","metric",":","param","cor",":","correlation","with","human","rating",":","param","sim_values",":","similarity","scores","for","word","pairs",":","param","sim_name",":","the","name","of","similarity","metric",":","param","dataset_name",":","the","name","of","word","similarity","dataset",":","return",":"]
code: def save_result(self, cor, sim_values, sim_name, dataset_name):
      """
      This function save the result computed by a similarity metric
      :param cor: correlation with human rating
      :param sim_values: similarity scores for word pairs
      :param sim_name: the name of similarity metric
      :param dataset_name: the name of word similarity dataset
      :return:
      """
      data = ["%.3f" % cor]
      data += map(lambda x: "%.3f" % x, sim_values)
      FileIO.save_list_file(
          "dataset/wordsim/results/%s-%s.txt"
          % (dataset_name, sim_name),
          data,
      )
  
imports: from __future__ import division, print_function
  import six
  from scipy.stats import spearmanr
  from scipy.stats import pearsonr
  from sematch.semantic.similarity import YagoTypeSimilarity
  from sematch.utility import FileIO
  import numpy
  from scipy.stats import t, norm
  from math import atanh, pow
  from numpy import tanh
  from sklearn.metrics import classification_report
  from sklearn.metrics import precision_recall_fscore_support
  from sklearn.metrics import accuracy_score
  from nltk import ConfusionMatrix
label_desc: Use image node_id 4 for calling the WordSimDataset obj's underlying member method code with example usage: obj.save_result(cor, sim_values, sim_name, dataset_name) without return types