relbert/flan-t5-xl-analogy
This is google/flan-t5-xl fine-tuned on relbert/semeval2012_relational_similarity
for analogy generation, which is to generate a word pair (eg. bird is to crow
) given a query (eg. mammal is to whale
)
so that the query and the generated word pair form an analogy statement.
Usage
from transformers import pipeline
pipe = pipeline('text2text-generation', model="relbert/flan-t5-xl-analogy")
output = pipe("generate analogy: mammal is to whale")
print(output)
>>> [{'generated_text': 'bird is to crow'}]
- Downloads last month
- 5
Inference Providers
NEW
This model is not currently available via any of the supported third-party Inference Providers, and
the model is not deployed on the HF Inference API.