marksverdhei / t5-base-define

huggingface.co
Total runs: 3
24-hour runs: 0
7-day runs: 1
30-day runs: -4
Model's Last Updated: August 22 2023
text-generation

Introduction of t5-base-define

Model Details of t5-base-define

T5-define

(This model is still a work in progress. If you use it for fine tuning, make sure to save a local copy)

This model is trained to generate word definitions based on the word and a context, using a subset of wordnet for all words that have an example and definition. The model uses task prompts on the format 'define "[word]": [example sentence]'

This model in particular is a one-shot learner for unseen words, as it has to infer the definition by only one example

How to run:

from transformers import T5ForConditionalGeneration, T5Tokenizer

tokenizer = T5Tokenizer.from_pretrained("marksverdhei/t5-base-define")
model = T5ForConditionalGeneration.from_pretrained("marksverdhei/t5-base-define")

prompt = "define \"noseplow\": The children hid as the noseplow drove across the street"

ids = tokenizer(prompt, return_tensors="pt").input_ids
generated_tokens = model.generate(ids)[0][1:-1]
print(tokenizer.decode(generated_tokens))

See the gist for the source code to used to train the model:

https://gist.github.com/marksverdhei/0a13f67e65460b71c05fcf558a6a91ae

Runs of marksverdhei t5-base-define on huggingface.co

3
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
-4
30-day runs

More Information About t5-base-define huggingface.co Model

t5-base-define huggingface.co

t5-base-define huggingface.co is an AI model on huggingface.co that provides t5-base-define's model effect (), which can be used instantly with this marksverdhei t5-base-define model. huggingface.co supports a free trial of the t5-base-define model, and also provides paid use of the t5-base-define. Support call t5-base-define model through api, including Node.js, Python, http.

marksverdhei t5-base-define online free

t5-base-define huggingface.co is an online trial and call api platform, which integrates t5-base-define's modeling effects, including api services, and provides a free online trial of t5-base-define, you can try t5-base-define online for free by clicking the link below.

marksverdhei t5-base-define online free url in huggingface.co:

https://huggingface.co/marksverdhei/t5-base-define

t5-base-define install

t5-base-define is an open source model from GitHub that offers a free installation service, and any user can find t5-base-define on GitHub to install. At the same time, huggingface.co provides the effect of t5-base-define install, users can directly use t5-base-define installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

t5-base-define install url in huggingface.co:

https://huggingface.co/marksverdhei/t5-base-define

Url of t5-base-define

Provider of t5-base-define huggingface.co

marksverdhei
ORGANIZATIONS

Other API from marksverdhei