# t5-base-qa-ner-conll

Unofficial implementation of [InstructionNER](https://arxiv.org/pdf/2203.03903v1.pdf).
t5-base model tuned on conll2003 dataset.

https://github.com/ovbystrova/InstructionNER 

## Inference 
```shell
git clone https://github.com/ovbystrova/InstructionNER 
cd InstructionNER
```

```python
from instruction_ner.model import Model
model = Model(
    model_path_or_name="olgaduchovny/t5-base-ner-mit-movie",
    tokenizer_path_or_name="olgaduchovny/t5-base-ner-mit-movie"
)
options = [
        "ACTOR",
        "AWARD",
        "CHARACTER",
        "DIRECTOR",
        "GENRE",
        "OPINION",
        "ORIGIN",
        "PLOT",
        "QUOTE",
        "RELATIONSHIP",
        "SOUNDTRACK",
        "YEAR"
    ]
instruction = "please extract entities and their types from the input sentence, " \
              "all entity types are in options"
text = "are there any good romantic comedies out right now"
generation_kwargs = {
    "num_beams": 2,
    "max_length": 128
}
pred_spans = model.predict(
    text=text,
    generation_kwargs=generation_kwargs,
    instruction=instruction,
    options=options
)
>>> [(19, 36, 'GENRE'), (41, 50, 'YEAR')]
```
{"language": ["en"], "license": "mit", "tags": ["pytorch", "ner", "text generation", "seq2seq"], "datasets": ["conll2003"], "metrics": ["f1"], "inference": false}
transformers pytorch t5 text2text-generation ner text generation seq2seq en dataset:conll2003 arxiv:2203.03903 license:mit autotrain_compatible text-generation-inference region:us
TAGS
#transformers #pytorch #t5 #text2text-generation #ner #text generation #seq2seq #en #dataset-conll2003 #arxiv-2203.03903 #license-mit #autotrain_compatible #text-generation-inference #region-us 

# t5-base-qa-ner-conll

Unofficial implementation of InstructionNER.
t5-base model tuned on conll2003 dataset.

URL 

## Inference 



# t5-base-qa-ner-conll

Unofficial implementation of InstructionNER.
t5-base model tuned on conll2003 dataset.

URL ## Inference
TAGS
#transformers #pytorch #t5 #text2text-generation #ner #text generation #seq2seq #en #dataset-conll2003 #arxiv-2203.03903 #license-mit #autotrain_compatible #text-generation-inference #region-us 
 # t5-base-qa-ner-conll

Unofficial implementation of InstructionNER.
t5-base model tuned on conll2003 dataset.

URL ## Inference
passage: TAGS
#transformers #pytorch #t5 #text2text-generation #ner #text generation #seq2seq #en #dataset-conll2003 #arxiv-2203.03903 #license-mit #autotrain_compatible #text-generation-inference #region-us 
# t5-base-qa-ner-conll

Unofficial implementation of InstructionNER.
t5-base model tuned on conll2003 dataset.

URL## Inference