From f932ddeff54b9cc641606520cac792e981a78ad5 Mon Sep 17 00:00:00 2001 From: Karthik Uppuluri Date: Fri, 6 Nov 2020 00:25:52 -0800 Subject: [PATCH] Create README.md (#8170) --- .../kuppuluri/telugu_bertu_tydiqa/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 model_cards/kuppuluri/telugu_bertu_tydiqa/README.md diff --git a/model_cards/kuppuluri/telugu_bertu_tydiqa/README.md b/model_cards/kuppuluri/telugu_bertu_tydiqa/README.md new file mode 100644 index 0000000000..9537accc86 --- /dev/null +++ b/model_cards/kuppuluri/telugu_bertu_tydiqa/README.md @@ -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