pepper.language.transitivity module¶
Created on Wed Apr 3 11:28:43 2019
@author: andrasaponyi
-
pepper.language.transitivity.
check_synonyms
(verb)[source]¶ Return the transitivity of a verb’s synonyms. To be called if the initial transitivity score is 0, but there is reason to believe that the verb is indeed transitive. I am still working on a method to determine how this decision can be made.
-
pepper.language.transitivity.
get_synonyms
(verb)[source]¶ Return the synonyms of the most frequent sense of a verb.
-
pepper.language.transitivity.
get_transitivity
(verb)[source]¶ Take a verb lemma as input. Return transitivity score and VerbNet (VN) frames if available.
- The returned tuple is constructed in the following way:
- -the first element is the transitivity score, where:
- -1 equals transitive -0 equals intransitive (or at least according to VN)
- -the second element is a list of tuples, each of which consists of:
- -first, the VN class_id of a given meaning of a verb -second, the corresponding frame itself
Regardless of the length of the transitive frames list, the transitivty score remains the same.