Semantic Database Module

This module is not a component in the default analysis chain, but it can be used by the applications to enrich or post process the results of the analysis.

Moreover, this module is used by the other modules that need access to the semantic database: The sense annotator senses, the dependency parser dep_txala, and the coreference solver coref.

The API for this module is

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

    /// get list of words for a sense+pos
    std::list<std::string> get_sense_words(const std::string &, const std::string &);

    /// get list of senses for a lemma+pos
    std::list<std::string> get_word_senses(const std::string &, const std::string &);

    /// get sense info for a sensecode+pos
    sense_info get_sense_info(const std::string &, const std::string &);
};



Subsections

Lluís Padró 2010-09-02