Skip to content

Commit

Permalink
Create README.md (huggingface#8170)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuppulur authored and stas00 committed Nov 10, 2020
1 parent 192225c commit b47d647
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions model_cards/kuppuluri/telugu_bertu_tydiqa/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Telugu Question-Answering model trained on Tydiqa dataset from Google

#### How to use

```python
from transformers.pipelines import pipeline, AutoModelForQuestionAnswering, AutoTokenizer
model = AutoModelForQuestionAnswering.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained("kuppuluri/telugu_bertu_tydiqa",
clean_text=False,
handle_chinese_chars=False,
strip_accents=False,
wordpieces_prefix='##')
nlp = pipeline('question-answering', model=model, tokenizer=tokenizer)
result = nlp({'question': question, 'context': context})
```

## Training data
I used Tydiqa Telugu data from Google https://github.com/google-research-datasets/tydiqa

0 comments on commit b47d647

Please sign in to comment.