Class BabelSynsetRelation

    • Constructor Detail

      • BabelSynsetRelation

        public BabelSynsetRelation​(it.uniroma1.lcl.jlt.util.Language language,
                                   BabelPointer pointer,
                                   String target)
        Builds a synset relation
        Parameters:
        language - the relation language
        pointer - the relation type
        target - the target offset
      • BabelSynsetRelation

        @Deprecated
        public BabelSynsetRelation​(it.uniroma1.lcl.jlt.util.Language language,
                                   BabelPointer pointer,
                                   String target,
                                   double weight,
                                   double normalizedWeight)
        Deprecated.
        For removal.
        Builds a synset relation
        Parameters:
        language - the relation language
        pointer - the relation type
        target - the target offset
        weight - the relation weight
        normalizedWeight - the relation normalized weight
    • Method Detail

      • getLanguage

        public it.uniroma1.lcl.jlt.util.Language getLanguage()
        Returns the relation language
        Returns:
        the relation language
      • getPointer

        public BabelPointer getPointer()
        Returns the relation type
        Returns:
        the relation type
      • getWeight

        @Deprecated
        public double getWeight()
        Deprecated.
        For removal.
        Getter for the weight of the relation
        Returns:
        the weight of this edge.
      • setWeight

        @Deprecated
        public void setWeight​(double weight)
        Deprecated.
        For removal.
        Parameters:
        weight - the relation weight
      • getNormalizedWeight

        @Deprecated
        public double getNormalizedWeight()
        Deprecated.
        For removal.
        Getter for the weight normalized across all relations of the same knowledge source, namely such that \sum_{e \in E_out^{WN/WIKI}} w(e) = 1
        Returns:
        the normalized weight of this edge.
      • setNormalizedWeight

        @Deprecated
        public void setNormalizedWeight​(double normalizedWeight)
        Deprecated.
        For removal.
        Sets the relation normalized weight
        Parameters:
        normalizedWeight - the normalized weight
      • getTarget

        public String getTarget()
        Gets the target ID.
        Returns:
        String
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object