LexData¶
The central Class for working with LexData is the Class Lexeme, it is documented on a separate page:
Other Classes and Functions¶
-
LexData.
create_lexeme
(repo: LexData.wikidatasession.WikidataSession, lemma: str, lang: LexData.language.Language, catLex: str, claims=None) → LexData.lexeme.Lexeme¶ Creates a lexeme
This function will created a lexeme on Wikidata with the given lemma, language and lexicographical category. Optionally claims can be added to the lexeme. The created lexeme is returned and can be edited further.
-
LexData.
get_or_create_lexeme
(repo: LexData.wikidatasession.WikidataSession, lemma: str, lang: LexData.language.Language, catLex: str) → LexData.lexeme.Lexeme¶ Search for a lexeme in wikidata if not found, create it
-
LexData.
search_lexemes
(repo: LexData.wikidatasession.WikidataSession, lemma: str, lang: LexData.language.Language, catLex: str) → List[LexData.lexeme.Lexeme]¶ Search for lexemes by their label, language and lexical category.