nicoladecao
commited on
Commit
•
aca7dd1
1
Parent(s):
1963609
Update README.md
Browse files
README.md
CHANGED
@@ -47,8 +47,9 @@ Here is an example of generation for Wikipedia page retrieval for open-domain fa
|
|
47 |
import pickle
|
48 |
from transformers import BartTokenizer, BartForConditionalGeneration
|
49 |
|
50 |
-
# OPTIONAL: load the prefix tree (trie), you need to download
|
51 |
-
# https://huggingface.co/facebook/genre-kilt/blob/main/trie.py
|
|
|
52 |
# from trie import Trie
|
53 |
# with open("kilt_titles_trie_dict.pkl", "rb") as f:
|
54 |
# trie = Trie.load_from_dict(pickle.load(f))
|
|
|
47 |
import pickle
|
48 |
from transformers import BartTokenizer, BartForConditionalGeneration
|
49 |
|
50 |
+
# OPTIONAL: load the prefix tree (trie), you need to additionally download
|
51 |
+
# https://huggingface.co/facebook/genre-kilt/blob/main/trie.py and
|
52 |
+
# https://huggingface.co/facebook/genre-kilt/blob/main/kilt_titles_trie_dict.pkl
|
53 |
# from trie import Trie
|
54 |
# with open("kilt_titles_trie_dict.pkl", "rb") as f:
|
55 |
# trie = Trie.load_from_dict(pickle.load(f))
|