germanetpy.frames¶
Functions
|
Apply a function of two arguments cumulatively to the items of an iterable, from left to right. |
Classes
|
- class germanetpy.frames.Frames(frames2lexunits: dict)[source]¶
Bases:
object- EXPLETIVE = 'NE'¶
- SUBJECT = 'NN'¶
- ACCOBJ = 'AN'¶
- DATOBJ = 'DN'¶
- GENOBJ = 'GN'¶
- PREPOBJ = 'PP'¶
- LOC = 'BL'¶
- DIR = 'BD'¶
- TEMP = 'BT'¶
- MAN = 'BM'¶
- INST = 'BS'¶
- CAUSE = 'BC'¶
- ROLE = 'BR'¶
- COM = 'BO'¶
- reflexives = ['DR', 'AR']¶
- extract_expletives() set[source]¶
This method extracts all verbs that can take expletives as an argument. Example: “[Es] regnet.”
- Returns:
A set of lexical units that stores all verbs as Lexunits that have the specified frame.
- extract_accusative_complement() set[source]¶
This method returns all verbs that can take an accusative complement. Example: “Sie sieht [ihn]”
- Returns:
A set of lexical units that stores all verbs as Lexunits that have the specified frame.
- extract_dative_complement() set[source]¶
This method returns all verbs that can take an dative complement. Example: “Sie schenkt [ihm] einen Hund.”
- Returns:
A set of lexical units that stores all verbs as Lexunits that have the specified frame.
- extract_gentive_complement() set[source]¶
This method returns all verbs that can take an genetive complement. Example: “Ihre Eltern berauben sie [ihrer Freiheit].”
- Returns:
A set of lexical units that stores all verbs as Lexunits that have the specified frame.
- extract_prepositional_complement() set[source]¶
This method returns all verbs that can take an prepositional complement. Example: “Die Kugel klackte [an die Fensterscheibe].”
- Returns:
A set of lexical units that stores all verbs as Lexunits that have the specified frame.
- extract_reflexives() set[source]¶
This method returns all verbs that can take an reflexive complement. Example: “Sie wird [sich] rächen.”
- Returns:
A set of lexical units that stores all verbs as Lexunits that have the specified frame.
- extract_adverbials() set[source]¶
This method returns all verbs that can take an adverbial complement. Example: “Sie wohnt [in einem Haus].”
- Returns:
A set of lexical units that stores all verbs as Lexunits that have the specified frame.
- extract_transitives() set[source]¶
This method returns all transitive verbs. A transitive verb is any verb that can have objects.
- Returns:
A set of lexical units that stores all transitive verbs as Lexunits.
- extract_intransitives() set[source]¶
This method returns all intransitive verbs. An intransitive verb is any verb that does not have objects.
- Returns:
A set of lexical units that stores all intransitive verbs as Lexunits.
- extract_specific_complements(complement: str) set[source]¶
This method returns all verbs that can take a given complement. This is specified in the frames of a verb.
- Param:
complement : a syntactic complement (e.g NN for subject), the complements are specified as class variables of this class
- Returns:
A set of lexical units that stores all verbs as Lexunits that can take the specified complement.
- property frames2verbs¶