Dictionary Search Module

The dictionary search module has two functions: Search the word forms in the dictionary to find out their lemmas and PoS tags, and apply affixation rules to find the same information in the cases in which the form is a derived form not included in the dictionary (e.g. the word quickly may not be in the dictionary, but a suffixation rule may state that removing -ly and searching for the obtained adjective is a valid way to form and adverb).

The decision of what is included in the dictionary and what is dealt with through affixation rules is left to the Linguistc Data developer.

The API for this module is the following:

class dictionary {
   public:
      /// Constructor
      dictionary(const std::string &, const std::string &, 
                bool, const std::string &);

      /// Get analysis for a given form, and add them
      /// to given analysis list
      void search_form(const std::string &, std::list<analysis> &);

      /// Analyze words in given sentence
      void annotate(sentence &);
}

The parameters of the constructor are:



Subsections
Lluís Padró 2010-09-02