File size: 947 Bytes
29b21ba 9bacc2d cd048a2 29b21ba 087def1 9bacc2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
---
license: cc-by-nc-sa-4.0
pipeline_tag: conversational
datasets:
- daily_dialog
---
⚠️ **This model is deprecated. Please don't use it as it produces embeddings of low quality.
We recommend using [triple-encoders](https://huggingface.co/UKPLab/triple-encoders-dailydialog) instead, also if you want to use them as a classic bi-encoder.**
Imaginary Embeddings utilize Curved Contrastive Learning (see paper [Imagination Is All You Need!](https://arxiv.org/pdf/2211.07591.pdf) (ACL 2023)) on [Sentence Transformers](https://sbert.net/) for long-short term dialogue planning and efficient abstract sequence modeling.
This model uses speaker tokens and was evaluated in the Short-Term planning experiments.
## Setup
```bash
python -m pip install imaginaryNLP
```
## Usage
```python
candidates = ['Want to eat something out ?',
'Want to go for a walk ?']
goal = ' I am hungry.'
stp.short_term_planning(candidates, goal)
``` |