relbert/flan-t5-small-analogy-permutation-domain
This is google/flan-t5-small 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-small-analogy-permutation-domain")
output = pipe("generate analogy: mammal is to whale")
print(output)
>>> [{'generated_text': 'bird is to crow'}]
- Downloads last month
- 2
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.