euiyulsong commited on
Commit
c1bd65d
·
1 Parent(s): 3f3e1c1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -3
README.md CHANGED
@@ -6,10 +6,9 @@ tokenizer = T5Tokenizer.from_pretrained(<span style="color:#FF9800">"t5-base"</s
6
  question = <span style="color:#FF9800">"question:"</span>
7
  title = <span style="color:#FF9800">"title:"</span>
8
  context = <span style="color:#FF9800">"context:"</span>
9
- tokenizer.add_tokens([question, title, context], special_tokens=<span style="color:#8BC34A">True</span>)
10
  config = AutoConfig.from_pretrained(<span style="color:#FF9800">"t5-base"</span>)
11
  model = FiDT5.from_pretrained(
12
  <span style="color:#FF9800">"xfact/FiD-NQ"</span>,
13
- config=<span style="color:#8BC34A">config</span>
14
  )
15
- ```
 
6
  question = <span style="color:#FF9800">"question:"</span>
7
  title = <span style="color:#FF9800">"title:"</span>
8
  context = <span style="color:#FF9800">"context:"</span>
9
+ tokenizer.add_tokens([question, title, context], <span style="color:#ff0000">special_tokens</span>=<span style="color:#8BC34A">True</span>)
10
  config = AutoConfig.from_pretrained(<span style="color:#FF9800">"t5-base"</span>)
11
  model = FiDT5.from_pretrained(
12
  <span style="color:#FF9800">"xfact/FiD-NQ"</span>,
13
+ <span style="color:#ff0000">config</span>=config
14
  )