MCPcopy Create free account

hub / github.com/PolyAI-LDN/conversational-datasets / functions

Functions140 in github.com/PolyAI-LDN/conversational-datasets

↓ 12 callersMethodcreate_example
(self, previous_lines, line, file_id)
opensubtitles/create_data_test.py:106
↓ 9 callersMethod_create_test_comment
(id, parent_id)
reddit/create_data_test.py:320
↓ 5 callersMethodcreate_example
(self, product_id, question, answer)
amazon_qa/create_data_test.py:126
↓ 5 callersMethodcreate_json_example
(self, product_id, question, answer)
amazon_qa/create_data_test.py:198
↓ 5 callersMethodencode_response
Encode the given response texts as vectors. Args: responses: a list of N strings, to be encoded. Returns: an
baselines/vector_based.py:38
↓ 4 callersMethod_create_example
(features)
reddit/create_data_test.py:230
↓ 4 callersFunction_print_field
(name, content, indent=False)
tools/tfrutil.py:107
↓ 4 callersFunction_should_skip
(text, min_words, max_words)
amazon_qa/create_data.py:113
↓ 4 callersMethodencode_context
Encode the given texts as vectors. Args: contexts: a list of N strings, to be encoded. Returns: an (N, d) nu
baselines/vector_based.py:27
↓ 3 callersMethod_compute_similarities
Compute the similarities between context and responses. Uses a learned mapping on the response side.
baselines/vector_based.py:413
↓ 3 callersFunction_get_string_feature
(example, feature_name)
tools/tfrutil.py:114
↓ 2 callersFunction_load_data
Load contexts and responses from the given conversational dataset.
baselines/run_baseline.py:188
↓ 2 callersFunction_normalise_id
Reddit IDs start with t1_, t2_, etc. which need to be stripped.
reddit/create_data.py:126
↓ 2 callersMethod_read_examples
(self, pattern)
amazon_qa/create_data_test.py:136
↓ 2 callersMethod_read_examples
(self, pattern)
opensubtitles/create_data_test.py:114
↓ 2 callersMethod_read_examples
(self, pattern)
reddit/create_data_test.py:213
↓ 2 callersMethod_read_json_examples
(self, pattern)
amazon_qa/create_data_test.py:205
↓ 2 callersMethod_read_json_examples
(self, pattern)
opensubtitles/create_data_test.py:185
↓ 2 callersMethod_read_json_examples
(self, pattern)
reddit/create_data_test.py:222
↓ 2 callersFunction_should_skip
Whether a line should be skipped depending on the length.
opensubtitles/create_data.py:85
↓ 2 callersFunction_should_skip
(comment, min_length)
reddit/create_data.py:146
↓ 2 callersMethod_vectorize
Vectorize the given strings.
baselines/keyword_based.py:48
↓ 2 callersMethod_vectorize
Vectorize the given strings.
baselines/keyword_based.py:102
↓ 2 callersMethodencode_context
Encode the given texts.
baselines/vector_based.py:73
↓ 2 callersMethodencode_context
Encode the given texts.
baselines/vector_based.py:201
↓ 2 callersMethodrank_responses
Rank the responses for each context.
baselines/keyword_based.py:109
↓ 2 callersMethodtrain
Fit the tf-idf transform and compute idf statistics.
baselines/keyword_based.py:95
↓ 2 callersMethodtrain
Perform any training steps using the (context, response) examples. Args: examples: a list of `(context, response)` string tuples,
baselines/method.py:11
↓ 1 callersMethod_build_mapping_graph
Build the graph that applies a learned mapping to the vectors.
baselines/vector_based.py:352
↓ 1 callersFunction_cli
Command line utilities for manipulating tfrecords files.
tools/tfrutil.py:33
↓ 1 callersFunction_create_example
Create an example dictionary.
amazon_qa/create_data.py:119
↓ 1 callersMethod_create_tokenizer_from_hub_module
Get the vocab file and casing info from the Hub module.
baselines/vector_based.py:206
↓ 1 callersMethod_create_train_and_dev
Create a train and dev set of context and response vectors.
baselines/vector_based.py:329
↓ 1 callersMethod_create_train_op
Create the train op.
baselines/vector_based.py:447
↓ 1 callersFunction_evaluate_method
(method, recall_k, contexts, responses)
baselines/run_baseline.py:161
↓ 1 callersMethod_feed_dict
Create a feed dict for feeding the texts as input. This uses dynamic padding so that the maximum sequence length is the smaller of `m
baselines/vector_based.py:222
↓ 1 callersMethod_grid_search
Perform a grid search of training hyper-parameters. The model that does the best on the dev set will be stored.
baselines/vector_based.py:463
↓ 1 callersFunction_parse_args
Parse command-line args.
baselines/run_baseline.py:19
↓ 1 callersFunction_parse_args
Parse command-line args.
amazon_qa/create_data.py:27
↓ 1 callersFunction_parse_args
Parse command-line args.
opensubtitles/create_data.py:29
↓ 1 callersFunction_parse_args
Parse command line arguments.
reddit/create_data.py:29
↓ 1 callersFunction_preprocess_line
(line)
opensubtitles/create_data.py:117
↓ 1 callersFunction_pretty_print_example
Format and print an individual tensorflow example.
tools/tfrutil.py:99
↓ 1 callersFunction_print_extra_contexts
Print the extra context features.
tools/tfrutil.py:119
↓ 1 callersFunction_print_other_features
Print the other features, which will depend on the dataset. For now, only support string features.
tools/tfrutil.py:139
↓ 1 callersFunction_shuffle
Shuffles the input pcollection.
reddit/create_data.py:230
↓ 1 callersFunction_shuffle_examples
(examples)
amazon_qa/create_data.py:128
↓ 1 callersFunction_shuffle_examples
(examples)
opensubtitles/create_data.py:173
↓ 1 callersMethod_split_value
Compute a value from 0 to 1 used to compute the split.
amazon_qa/create_data.py:171
↓ 1 callersMethod_split_value
Compute a value from 0 to 1 used to compute the split.
opensubtitles/create_data.py:204
↓ 1 callersMethod_split_value
Compute a value from 0 to 1 used to compute the split.
reddit/create_data.py:262
↓ 1 callersFunctioncreate_example
Creates examples with multi-line context The examples will include: file_id: the name of the file where these lines were obtained.
opensubtitles/create_data.py:90
↓ 1 callersMethodencode_context
Encode the given texts as contexts.
baselines/vector_based.py:110
↓ 1 callersMethodencode_context
Encode the given texts as contexts.
baselines/vector_based.py:145
↓ 1 callersMethodencode_response
Encode the given texts as responses.
baselines/vector_based.py:115
↓ 1 callersMethodencode_response
Encode the given texts as responses.
baselines/vector_based.py:150
↓ 1 callersFunctionlinear_paths
Gets all linear paths of comments and replies from the thread. Each linear path is guaranteed to have at least two comments in it.
reddit/create_data.py:201
↓ 1 callersMethodrank_responses
Rank the responses for each context.
baselines/keyword_based.py:81
↓ 1 callersMethodrank_responses
Rank the responses for each context. Args: contexts: a list of strings giving the contexts to use. responses: a list
baselines/method.py:21
↓ 1 callersMethodrank_responses
Rank the responses for each context, using cosine similarity.
baselines/vector_based.py:272
↓ 1 callersMethodrank_responses
Rank the responses for each context.
baselines/vector_based.py:541
↓ 1 callersFunctionrun
Run the beam pipeline.
amazon_qa/create_data.py:182
↓ 1 callersFunctionrun
Run the beam pipeline.
opensubtitles/create_data.py:215
↓ 1 callersFunctionrun
Run the beam pipeline. Args: argv: (optional) the command line flags to parse. comments_collection: (optional) a list of comment
reddit/create_data.py:273
↓ 1 callersMethodto_method_object
Convert the enum to an instance of `BaselineMethod`.
baselines/run_baseline.py:74
↓ 1 callersMethodtrain
Fit the tf-idf transform and compute idf statistics.
baselines/keyword_based.py:30
↓ 1 callersMethodtrain
Train on the contexts and responses.
baselines/vector_based.py:308
↓ 1 callersFunctiontrim
Trims text to be at most `max_length`, without splitting apart words.
reddit/create_data.py:131
Method__init__
Create a new `BM25Method` object.
baselines/keyword_based.py:25
Method__init__
Create a new `TfHubEncoder` object.
baselines/vector_based.py:60
Method__init__
Create a new `USEDualEncoder` object.
baselines/vector_based.py:85
Method__init__
Create a new `ConveRTEncoder` object.
baselines/vector_based.py:129
Method__init__
Create a new `BERTEncoder` object.
baselines/vector_based.py:166
Method__init__
Create a new `VectorSimilarityMethod` object.
baselines/vector_based.py:264
Method__init__
Create a new `VectorMappingMethod` object.
baselines/vector_based.py:297
Method__init__
(self, train_split=0.9, num_buckets=4096)
amazon_qa/create_data.py:159
Method__init__
(self, train_split=0.9, num_buckets=4096)
opensubtitles/create_data.py:192
Method__init__
(self, train_split, num_buckets=4096)
reddit/create_data.py:250
Method__str__
String representation to use in argparse help text.
baselines/run_baseline.py:148
Method_compute_accuracy
()
baselines/vector_based.py:470
Function_create_examples_from_file
(file_name, min_length, max_length, num_extra_contexts)
opensubtitles/create_data.py:133
Function_create_tuples
Creates (product_id, question, answer) tuples.
amazon_qa/create_data.py:89
Function_features_to_serialized_tf_example
Convert a string dict to a serialized TF example. The dictionary maps feature names (strings) to feature values (strings).
amazon_qa/create_data.py:137
Function_features_to_serialized_tf_example
Convert a string dict to a serialized TF example. The dictionary maps feature names (strings) to feature values (strings).
opensubtitles/create_data.py:161
Function_features_to_serialized_tf_example
Convert a string dict to a serialized TF example. The dictionary maps feature names (strings) to feature values (strings).
reddit/create_data.py:189
Function_positive_int
Define a positive integer ArgumentParser type.
amazon_qa/create_data.py:30
Function_positive_int
Define a positive integer ArgumentParser type.
opensubtitles/create_data.py:32
Function_positive_int
Define a positive integer ArgumentParser type.
reddit/create_data.py:32
Function_pretty_print
Format and print the contents of the tfrecord file to stdout.
tools/tfrutil.py:89
Method_random_encode
(texts)
baselines/vector_based_test.py:214
Function_sample
(sample_size, file_patterns, out)
tools/tfrutil.py:52
Function_size
Compute the number of examples in the input tfrecord file.
tools/tfrutil.py:40
Functioncreate_examples
Creates serialized tensorflow examples from a reddit thread.
reddit/create_data.py:156
Methodfrom_string
Convert a string parsed from argparse to an enum instance.
baselines/run_baseline.py:153
Methodmock_fn
(inputs, signature, as_dict)
baselines/vector_based_test.py:49
Methodmock_fn
(input, signature=None)
baselines/vector_based_test.py:94
Methodmock_module
(inputs=None, signature=None, as_dict=None)
baselines/vector_based_test.py:146
Functionnormalise_comment
Create a _Comment object from a row in the BigQuery table.
reddit/create_data.py:113
Methodprocess
(self, example)
amazon_qa/create_data.py:164
Methodprocess
(self, example)
opensubtitles/create_data.py:197
next →1–100 of 140, ranked by callers