Class BabelSenseTranslationInfo
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelSenseTranslationInfo
Deprecated.
For removal.
A class modeling translation-related information pertaining to a
BabelSense.- Author:
- ponzetto
-
Constructor Summary
ConstructorsConstructorDescriptionBabelSenseTranslationInfo(double confidence, int numberOfTranslations, int sampleSize) Deprecated.Creates a new instance ofBabelSenseTranslationInfo -
Method Summary
Modifier and TypeMethodDescriptionstatic BabelSenseTranslationInfofromString(String s) Deprecated.Creates a new instance of aBabelSenseTranslationInfofrom an input String.doubleDeprecated.Gets a confidence score for a translation.intDeprecated.Gets the number of times a source sense was translated as a target sense.intDeprecated.Gets the size of the sample for translating - the number of sense-annotated examples for the source sensetoString()Deprecated.
-
Constructor Details
-
BabelSenseTranslationInfo
public BabelSenseTranslationInfo(double confidence, int numberOfTranslations, int sampleSize) Deprecated.Creates a new instance ofBabelSenseTranslationInfo- Parameters:
confidence- translation confidencenumberOfTranslations- number of translationssampleSize- 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
-
fromString
Deprecated.Creates a new instance of aBabelSenseTranslationInfofrom an input String.- Parameters:
s- the translation string information- Returns:
- a new instance of a
BabelSenseTranslationInfofrom the given string.
-