batterydata
commited on
Commit
•
0ffbd23
1
Parent(s):
7b2d614
Update README.md
Browse files
README.md
CHANGED
@@ -44,8 +44,8 @@ model_name = "batterydata/bert-base-cased-squad-v1"
|
|
44 |
# a) Get predictions
|
45 |
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
|
46 |
QA_input = {
|
47 |
-
'question': '
|
48 |
-
'context': 'The
|
49 |
}
|
50 |
res = nlp(QA_input)
|
51 |
# b) Load model & tokenizer
|
|
|
44 |
# a) Get predictions
|
45 |
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
|
46 |
QA_input = {
|
47 |
+
'question': 'What is the electrolyte?',
|
48 |
+
'context': 'The typical non-aqueous electrolyte for commercial Li-ion cells is a solution of LiPF6 in linear and cyclic carbonates.'
|
49 |
}
|
50 |
res = nlp(QA_input)
|
51 |
# b) Load model & tokenizer
|