julianrisch commited on
Commit
b2c4057
1 Parent(s): 3e350aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -52,7 +52,7 @@ docs = [
52
  Document(content="python ist eine beliebte Programmiersprache"),
53
  ]
54
 
55
- reader = ExtractiveReader(model="deepset/roberta-base-squad2")
56
  reader.warm_up()
57
 
58
  question = "What is a popular programming language?"
@@ -65,7 +65,7 @@ For a complete example with an extractive question answering pipeline that scale
65
  ```python
66
  from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
67
 
68
- model_name = "deepset/roberta-base-squad2"
69
 
70
  # a) Get predictions
71
  nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
 
52
  Document(content="python ist eine beliebte Programmiersprache"),
53
  ]
54
 
55
+ reader = ExtractiveReader(model="deepset/gelectra-base-germanquad")
56
  reader.warm_up()
57
 
58
  question = "What is a popular programming language?"
 
65
  ```python
66
  from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
67
 
68
+ model_name = "deepset/gelectra-base-germanquad"
69
 
70
  # a) Get predictions
71
  nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)