Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
f932ddef
Unverified
Commit
f932ddef
authored
Nov 06, 2020
by
Karthik Uppuluri
Committed by
GitHub
Nov 06, 2020
Browse files
Create README.md (#8170)
parent
08b92f78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
model_cards/kuppuluri/telugu_bertu_tydiqa/README.md
model_cards/kuppuluri/telugu_bertu_tydiqa/README.md
+18
-0
No files found.
model_cards/kuppuluri/telugu_bertu_tydiqa/README.md
0 → 100644
View file @
f932ddef
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment