Sense Labelling Module

This module searches the lemma of each analysis in a sense dictionary, and enriches the analysis with the list of senses found there.

Note that this is not disambiguation, all senses for the lemma are returned.

The module receives a file containing the sense dictionary. FreeLing provides WordNet-based [Fel98,Vos98] dictionaries, but the results of this module can be changed to any other sense catalogue simply providing a different sense dictionary file.

class senses {
   public:
      /// Constructor: receives the name of the dictionary file and a boolean.
      senses(const std::string &, bool); 
 
      /// sense annotate selected analysis for each word in given sentences
      void analyze(std::list<sentence> &);
};

The constructor of this class receives:

Lluís Padró 2010-09-02