Class BabelSynsetGlossComparator

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

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

    • BabelSynsetGlossComparator

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

      public BabelSynsetGlossComparator(String word, it.uniroma1.lcl.jlt.util.Language language)
      Creates a new instance of a BabelSynsetGlossComparator
      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