Edit model card

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
2