Class BabelSenseTranslationInfo

java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelSenseTranslationInfo

@Deprecated public class BabelSenseTranslationInfo extends Object
Deprecated.
For removal.
A class modeling translation-related information pertaining to a BabelSense.
Author:
ponzetto
  • Constructor Details

    • BabelSenseTranslationInfo

      public BabelSenseTranslationInfo(double confidence, int numberOfTranslations, int sampleSize)
      Deprecated.
      Creates a new instance of BabelSenseTranslationInfo
      Parameters:
      confidence - translation confidence
      numberOfTranslations - number of translations
      sampleSize - size of the sample
  • Method Details

    • getConfidence

      public double getConfidence()
      Deprecated.
      Gets a confidence score for a translation.
      Returns:
      the confidence score for a translation.
    • getNumberOfTranslations

      public int getNumberOfTranslations()
      Deprecated.
      Gets the number of times a source sense was translated as a target sense.
      Returns:
      how many times a source sense was translated as a target sense.
    • getSampleSize

      public int getSampleSize()
      Deprecated.
      Gets the size of the sample for translating - the number of sense-annotated examples for the source sense
      Returns:
      the number of sense-annotated examples for the source sense
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • fromString

      public static BabelSenseTranslationInfo fromString(String s)
      Deprecated.
      Creates a new instance of a BabelSenseTranslationInfo from an input String.
      Parameters:
      s - the translation string information
      Returns:
      a new instance of a BabelSenseTranslationInfo from the given string.