MCPcopy Create free account

hub / github.com/alexwarstadt/data_generation / functions

Functions165 in github.com/alexwarstadt/data_generation

Method__init__
(self, msg)
utils/exceptions.py:24
Method__init__
(self)
generation_projects/examples/distractor_agreement_rc.py:9
Method__init__
(self)
generation_projects/examples/determiner_noun_agreement_1.py:9
Method__init__
(self)
generation_projects/examples/adjunct_island.py:8
Method__init__
(self)
generation_projects/examples/inchoative.py:8
Method__init__
(self)
generation_projects/examples/existential_there_object_raising.py:8
Method__init__
(self)
generation_projects/examples/wh_vs_that_no_gap_long_distance.py:9
Functionbuild_locative
(locale, allow_quantifiers=True, avoid=None, bind_det=False)
utils/constituent_building.py:558
Methodbuild_paradigm
(self, training_1_1, training_0_0, test_1_0, test_0_1, control_1_1=None, control_0_0=No
utils/data_generator.py:410
Methodbuild_presupposition_paradigm
(self, unembedded_trigger=None, negated_trigger=None, interrogative_trigger=None, modal_trigger=None, conditio
utils/data_generator.py:247
Functioncondition_is_match_disj
:param condition: a string representing a selectional condition :param disjunction: a string corresponding to a disjunction of selectional re
utils/vocab_table.py:132
Functiondecision
(probability)
utils/randomize.py:5
Functionembed_V_args_under_modal
This is used to embed `John was sleeping' under might as `John might have been sleeping'. If the aux doesn't need to change, return None.
utils/constituent_building.py:448
Functionembed_in_conditional
(sentence)
utils/embed.py:51
Functionembed_in_modal
(sentence)
utils/embed.py:34
Functionembed_in_negation
(sentence, neutral=True)
utils/embed.py:13
Functionembed_in_question
(sentence)
utils/embed.py:6
Methodgenerate_paradigm
(self, number_to_generate=12, rel_output_path=None, absolute_path=None)
utils/data_generator.py:157
Methodgenerate_paradigm
(self, number_to_generate=10, rel_output_path=None, absolute_path=None)
utils/data_generator.py:208
Methodgenerate_paradigm
(self, number_to_generate=10, rel_output_path=None, absolute_path=None)
utils/data_generator.py:332
Functionget_all_ACCpronouns
()
utils/vocab_sets_dynamic.py:338
Functionget_all_NOMpronouns
()
utils/vocab_sets_dynamic.py:343
Functionget_all_adjectives
()
utils/vocab_sets_dynamic.py:365
Functionget_all_embedding_verbs
()
utils/vocab_sets_dynamic.py:348
Functionget_all_frequent_determiners
()
utils/vocab_sets_dynamic.py:318
Functionget_all_gendered_nouns
()
utils/vocab_sets_dynamic.py:42
Functionget_all_inanimate_nouns
()
utils/vocab_sets_dynamic.py:32
Functionget_all_negated_modals
()
utils/vocab_sets_dynamic.py:234
Functionget_all_non_finite_intransitive_verbs
()
utils/vocab_sets_dynamic.py:204
Functionget_all_non_negated_modals
()
utils/vocab_sets_dynamic.py:239
Functionget_all_non_plural_transitive_verbs
()
utils/vocab_sets_dynamic.py:162
Functionget_all_plural_animate_nouns
()
utils/vocab_sets_dynamic.py:57
Functionget_all_refl_nonverbal_predicates
()
utils/vocab_sets_dynamic.py:150
Functionget_all_refl_preds
()
utils/vocab_sets_dynamic.py:157
Functionget_all_reflexives
()
utils/vocab_sets_dynamic.py:333
Functionget_all_relational_nouns
()
utils/vocab_sets_dynamic.py:67
Functionget_all_relativizers
()
utils/vocab_sets_dynamic.py:328
Functionget_all_rogatives
()
utils/vocab_sets_dynamic.py:264
Functionget_all_singular_count_nouns
()
utils/vocab_sets_dynamic.py:22
Functionget_all_singular_neuter_animate_nouns
()
utils/vocab_sets_dynamic.py:47
Functionget_all_strictly_plural_transitive_verbs
()
utils/vocab_sets_dynamic.py:179
Functionget_all_strictly_singular_transitive_verbs
()
utils/vocab_sets_dynamic.py:184
Functionget_all_very_common_dets
()
utils/vocab_sets_dynamic.py:323
Functionget_do_form
:param verb: a verb vocab item :return: the form of "do" necessary for "do"-support in question formation
utils/constituent_building.py:520
Functionget_matches_of_conj
:param rows_labels: list of (r,l) pairs: [(r1, l1), (r2, l2), (r3, l3)] :param table: ndarray of vocab items. :return: all entries in tab
utils/vocab_table.py:60
Functionget_mismatch_verb
:param verb: a present tense verb vocab entry :return: the verb with opposite agreement
utils/conjugate.py:134
Functionget_reflexive
:param noun: the vocab entry of a noun :return: a reflexive pronoun agreeing with the noun
utils/constituent_building.py:326
Functionget_same_V_form
:param root: The string identifier for a verb root :param verb_to_match: A reference verb in the inflectional form in which to conjugate root
utils/constituent_building.py:536
Methodmake_metadata_dict
(non token-specific metadata is in class fields, e.g. self.field=syntax) :param extra_metadata: token-specific metadata, e.g. one_pre
utils/data_generator.py:126
Functionmake_probing_data
Function that creates probing datasets for each environment (after splits have been created) :return: none. writes to output
utils/metadata_parse.py:136
Functionmake_splits
Function that makes train/dev/test splits for each enviroment :param test_size: number of paradigms in the test set :param dev_size: numb
utils/metadata_parse.py:82
Functionmake_subsets
Function that makes datasets for all subsets of the environments, of a certain size :param in_domain_size: number of environments to be in-do
utils/metadata_parse.py:41
Functionnegate_V_args
:param V_args: a dict containing the arguments of a verb :return: the dict with additional entries for the verb form and auxiliary form neces
utils/constituent_building.py:397
Functionpred_args_from_pred
:param pred: the vocab entry of a non-verbal predicate :param frequent: should only frequent vocab be generated? :param subj: if supplied
utils/constituent_building.py:133
Functionre_conjugate
:param verb: vocab entry :param subj: vocab entry :param aux: vocab entry :return: modify the verb and auxiliary to agree with the in
utils/conjugate.py:27
Functionrequire_aux
:param verb: vocab entry :param subj: vocab entry :param allow_negated: are negated auxiliaries (e.g. shouldn't) allowed :return: aux
utils/conjugate.py:86
Functionreturn_copula
:param subj: vocab entry :param allow_negated: should negated auxiliaries (e.g. shouldn't) ever be generated? :param require_negated: sho
utils/conjugate.py:69
Methodsample
(self)
generation_projects/examples/distractor_agreement_rc.py:21
Methodsample
(self)
generation_projects/examples/determiner_noun_agreement_1.py:23
Methodsample
(self)
generation_projects/examples/adjunct_island.py:20
Methodsample
(self)
generation_projects/examples/inchoative.py:22
Methodsample
(self)
generation_projects/examples/existential_there_object_raising.py:25
Methodsample
(self)
generation_projects/examples/wh_vs_that_no_gap_long_distance.py:19
Functionsubject_relative_clause
:param noun: noun to be modified (subject of RC) :return: relative clause (without modified noun)
utils/constituent_building.py:312
Functionsubset
(set, probability)
utils/randomize.py:8
← previous101–165 of 165, ranked by callers