Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PolyAI-LDN/conversational-datasets
/ types & classes
Types & classes
26 in github.com/PolyAI-LDN/conversational-datasets
⨍
Functions
140
◇
Types & classes
26
↳
Endpoints
2
↓ 1 callers
Class
_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 callers
Class
_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 callers
Class
_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
Class
BERTEncoder
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
Class
BERTEncoderTest
baselines/vector_based_test.py:127
Class
BM25Method
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
Class
BM25MethodTest
baselines/keyword_based_test.py:42
Class
BaselineMethod
Abstract class to define a baseline response selection method.
baselines/method.py:6
Class
ConveRTEncoder
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
Class
ConveRTEncoderTest
Test ConveRTEncoder.
baselines/vector_based_test.py:88
Class
CreateDataPipelineTest
amazon_qa/create_data_test.py:64
Class
CreateDataPipelineTest
opensubtitles/create_data_test.py:35
Class
CreateDataPipelineTest
Test running the pipeline end-to-end.
reddit/create_data_test.py:16
Class
CreateDataTest
Test individual helper functions.
reddit/create_data_test.py:238
Class
Encoder
A model that maps from text to dense vectors.
baselines/vector_based.py:22
Class
Method
baselines/run_baseline.py:51
Class
TfHubEncoder
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
Class
TfHubEncoderTest
baselines/vector_based_test.py:15
Class
TfIdfMethod
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
Class
TfIdfMethodTest
baselines/keyword_based_test.py:8
Class
USEDualEncoder
A dual encoder following the USE_QA signatures. Args: uri: (string) the tensorflow hub URI for the model.
baselines/vector_based.py:79
Class
USEDualEncoderTest
Test USEDualEncoder.
baselines/vector_based_test.py:43
Class
VectorMappingMethod
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
Class
VectorMappingMethodTest
baselines/vector_based_test.py:210
Class
VectorSimilarityMethod
Ranks responses using cosine similarity of context & response vectors. Args: encoder: the `Encoder` object to use.
baselines/vector_based.py:258
Class
VectorSimilarityMethodTest
baselines/vector_based_test.py:179