MCPcopy Create free account

hub / github.com/PolyAI-LDN/conversational-datasets / types & classes

Types & classes26 in github.com/PolyAI-LDN/conversational-datasets

↓ 1 callersClass_TrainTestSplitFn
Splits an input PCollection of examples into train and test. This uses the product id to compute the split, so that examples from the same pr
amazon_qa/create_data.py:149
↓ 1 callersClass_TrainTestSplitFn
Splits an input PCollection of examples into train and test. This uses the file id (name) to compute the split, so that examples from the sam
opensubtitles/create_data.py:181
↓ 1 callersClass_TrainTestSplitFn
Splits an input PCollection of examples into train and test. This uses the thread id to compute the split, so that examples from the same thr
reddit/create_data.py:239
ClassBERTEncoder
The BERT encoder that is loaded as a module from tensorflow hub. This class tokenizes the input text using the bert tokenization library. The
baselines/vector_based.py:156
ClassBERTEncoderTest
baselines/vector_based_test.py:127
ClassBM25Method
BM25 baseline, using weighted keyword matching. Adapted from https://github.com/arosh/BM25Transformer/blob/master/bm25.py see Okapi BM25: a n
baselines/keyword_based.py:13
ClassBM25MethodTest
baselines/keyword_based_test.py:42
ClassBaselineMethod
Abstract class to define a baseline response selection method.
baselines/method.py:6
ClassConveRTEncoder
The ConveRT encoder. See https://github.com/PolyAI-LDN/polyai-models. Args: uri: (string) the tensorflow hub URI for the model.
baselines/vector_based.py:121
ClassConveRTEncoderTest
Test ConveRTEncoder.
baselines/vector_based_test.py:88
ClassCreateDataPipelineTest
amazon_qa/create_data_test.py:64
ClassCreateDataPipelineTest
opensubtitles/create_data_test.py:35
ClassCreateDataPipelineTest
Test running the pipeline end-to-end.
reddit/create_data_test.py:16
ClassCreateDataTest
Test individual helper functions.
reddit/create_data_test.py:238
ClassEncoder
A model that maps from text to dense vectors.
baselines/vector_based.py:22
ClassMethod
baselines/run_baseline.py:51
ClassTfHubEncoder
An encoder that is loaded as a module from tensorflow hub. The tensorflow hub module must take a vector of strings, and return a matrix of en
baselines/vector_based.py:51
ClassTfHubEncoderTest
baselines/vector_based_test.py:15
ClassTfIdfMethod
TF-IDF baseline. This hashes words to sparse IDs, and then computes tf-idf statistics for these hashed IDs. As a result, no words are conside
baselines/keyword_based.py:89
ClassTfIdfMethodTest
baselines/keyword_based_test.py:8
ClassUSEDualEncoder
A dual encoder following the USE_QA signatures. Args: uri: (string) the tensorflow hub URI for the model.
baselines/vector_based.py:79
ClassUSEDualEncoderTest
Test USEDualEncoder.
baselines/vector_based_test.py:43
ClassVectorMappingMethod
Applies a linear mapping to the response side and ranks with similarity. This learns a [dim, dim] weights matrix, and maps the response vector `x
baselines/vector_based.py:282
ClassVectorMappingMethodTest
baselines/vector_based_test.py:210
ClassVectorSimilarityMethod
Ranks responses using cosine similarity of context & response vectors. Args: encoder: the `Encoder` object to use.
baselines/vector_based.py:258
ClassVectorSimilarityMethodTest
baselines/vector_based_test.py:179