batterydata commited on
Commit
0ffbd23
1 Parent(s): 7b2d614

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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': 'Why is model conversion important?',
48
- 'context': 'The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks.'
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