germanetpy.lexunit¶
Classes
|
This enum represents the lexical relation (short: LexRel) that a Lexunit can have in GermaNet. |
|
This class holds the lexical unit object of GermaNet. |
|
This enum represents the four possible orthographical variations |
|
defaultdict(default_factory=None, /, [...]) --> dict with default factory |
- class germanetpy.lexunit.LexRel(*args: Any, **kwargs: Any)[source]¶
Bases:
EnumThis enum represents the lexical relation (short: LexRel) that a Lexunit can have in GermaNet. You can find a description of each relation at: https://uni-tuebingen.de/en/142846
- has_synonym = 'has_synonym'¶
- has_antonym = 'has_antonym'¶
- has_pertainym = 'has_pertainym'¶
- has_participle = 'has_participle'¶
- has_active_usage = 'has_active_usage'¶
- has_occasion = 'has_occasion'¶
- has_attribute = 'has_attribute'¶
- has_appearance = 'has_appearance'¶
- has_construction_method = 'has_construction_method'¶
- has_container = 'has_container'¶
- is_container_for = 'is_container_for'¶
- has_consistency_of = 'has_consistency_of'¶
- has_component = 'has_component'¶
- has_owner = 'has_owner'¶
- is_owner_of = 'is_owner_of'¶
- has_function = 'has_function'¶
- has_manner_of_functioning = 'has_manner_of_functioning'¶
- has_origin = 'has_origin'¶
- has_production_method = 'has_production_method'¶
- has_content = 'has_content'¶
- has_no_property = 'has_no_property'¶
- has_habitat = 'has_habitat'¶
- has_location = 'has_location'¶
- is_location_of = 'is_location_of'¶
- has_measure = 'has_measure'¶
- is_measure_of = 'is_measure_of'¶
- has_material = 'has_material'¶
- has_member = 'has_member'¶
- is_member_of = 'is_member_of'¶
- has_diet = 'has_diet'¶
- is_diet_of = 'is_diet_of'¶
- has_eponym = 'has_eponym'¶
- has_user = 'has_user'¶
- has_product = 'has_product'¶
- is_product_of = 'is_product_of'¶
- has_prototypical_holder = 'has_prototypical_holder'¶
- is_prototypical_holder_for = 'is_prototypical_holder_for'¶
- has_prototypical_place_of_usage = 'has_prototypical_place_of_usage'¶
- has_relation = 'has_relation'¶
- has_raw_product = 'has_raw_product'¶
- has_other_property = 'has_other_property'¶
- is_storage_for = 'is_storage_for'¶
- has_specialization = 'has_specialization'¶
- has_part = 'has_part'¶
- is_part_of = 'is_part_of'¶
- has_topic = 'has_topic'¶
- is_caused_by = 'is_caused_by'¶
- is_cause_for = 'is_cause_for'¶
- is_comparable_to = 'is_comparable_to'¶
- has_usage = 'has_usage'¶
- has_result_of_usage = 'has_result_of_usage'¶
- has_purpose_of_usage = 'has_purpose_of_usage'¶
- has_goods = 'has_goods'¶
- has_time = 'has_time'¶
- is_access_to = 'is_access_to'¶
- has_ingredient = 'has_ingredient'¶
- is_ingredient_of = 'is_ingredient_of'¶
- class germanetpy.lexunit.OrthFormVariant(*args: Any, **kwargs: Any)[source]¶
Bases:
EnumThis enum represents the four possible orthographical variations
- orthForm = 'orthForm'¶
- orthVar = 'orthVar'¶
- oldOrthForm = 'oldOrthForm'¶
- oldOrthVar = 'oldOrthVar'¶
- class germanetpy.lexunit.Lexunit(id: str, synset, sense: int, source: str, named_entity: bool, style_marking: bool, artificial: bool, compound_info=None, orthform: str = None, old_orthform: str = None, orthvar: str = None, old_orthvar: str = None, particle: str = None, base_verb: str = None, comment: str = None)[source]¶
Bases:
objectThis class holds the lexical unit object of GermaNet. A lexical unit is a concrete word that is part of a synset.
- get_orthform_variant(orthform_variant) str[source]¶
- Parameters:
orthform_variant (OrthFormVariant) – one of the four orthform_variants
- Returns:
the string of the requested orthform variant or the main orthform, if the requested orthform doesn’t exist.
- get_all_orthforms() set[source]¶
- Returns:
A set of all existing orthform variants of the current lexunit.
- property id¶
- property synset¶
- property sense¶
- property orthform¶
- property orthvar¶
- property old_orthform¶
- property old_orthvar¶
- property particle¶
- property base_verb¶
- property comment¶
- property frames¶
- property examples¶
- property ili_records¶
- property frames2examples¶
- property wiktionary_paraphrases¶
- property compound_info¶
- property relations¶
- property incoming_relations¶
- property artificial¶