Class BabelSynsetRelationComparator

java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelSynsetRelationComparator
All Implemented Interfaces:
Comparator<BabelSynset>

public class BabelSynsetRelationComparator extends Object implements Comparator<BabelSynset>
Comparator for BabelSynsets that (a) sorts Babel synsets using theirs relations number (b) sorts using InternalBabelSynsetComparator
Author:
vannella
  • Constructor Details

    • BabelSynsetRelationComparator

      public BabelSynsetRelationComparator(String word)
      Creates a new instance of a BabelSynsetRelationComparator with sorting on the English language
      Parameters:
      word - the word whose sense numbers are used to sort the BabelSynsets corresponding to WordNet synsets
    • BabelSynsetRelationComparator

      public BabelSynsetRelationComparator(String word, it.uniroma1.lcl.jlt.util.Language language)
      Creates a new instance of a BabelSynsetRelationComparator
      Parameters:
      word - the word whose sense numbers are used to sort the BabelSynsets corresponding to WordNet synsets
      language - the language used to sort senses
  • Method Details