Skip to content
Snippets Groups Projects
Commit 9bbb8f94 authored by ilor's avatar ilor
Browse files

Merge branch 'master' of nlp.pwr.wroc.pl:corpus2

parents 1a997c0a c45bf7e4
Branches
No related merge requests found
...@@ -147,7 +147,9 @@ Token* PoliqarpClient::get_token(size_t pos) ...@@ -147,7 +147,9 @@ Token* PoliqarpClient::get_token(size_t pos)
poliqarp_get_interpretation(&set, &interp, i); poliqarp_get_interpretation(&set, &interp, i);
poliqarp_get_interpretation_info(&interp, &iinfo); poliqarp_get_interpretation_info(&interp, &iinfo);
Tag tag = tagset_.parse_simple_tag(iinfo.tag); Tag tag = tagset_.parse_simple_tag(iinfo.tag);
res->add_lexeme(Lexeme(UnicodeString::fromUTF8(iinfo.base), tag)); Lexeme lex = Lexeme(UnicodeString::fromUTF8(iinfo.base), tag);
lex.set_disamb(interp.disamb);
res->add_lexeme(lex);
} }
return res.release(); return res.release();
} }
......
...@@ -107,6 +107,11 @@ namespace Corpus2 { ...@@ -107,6 +107,11 @@ namespace Corpus2 {
std::string id_string() const; std::string id_string() const;
std::string id_string(const Tag& tag) const; std::string id_string(const Tag& tag) const;
const std::string& get_value_name(int index) const;
const std::string& get_attribute_name(int index) const;
const std::string& get_pos_name(int index) const;
}; };
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment