julianrisch commited on
Commit
c1bbfe5
1 Parent(s): 43ebb8d

Update README.md

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