Spaces:
Runtime error
Runtime error
Update dataset.py
Browse files- dataset.py +1 -1
dataset.py
CHANGED
@@ -112,7 +112,7 @@ def from_processed(url: str, train=False):
|
|
112 |
|
113 |
def get_collate_fn(text_vocab_size: int, max_seq_length: int):
|
114 |
def collate_fn(examples: List[Example]) -> Batched:
|
115 |
-
from
|
116 |
|
117 |
title_token_ids = pad_sequence(
|
118 |
[
|
|
|
112 |
|
113 |
def get_collate_fn(text_vocab_size: int, max_seq_length: int):
|
114 |
def collate_fn(examples: List[Example]) -> Batched:
|
115 |
+
from vocab import BOS_ID, EOS_ID
|
116 |
|
117 |
title_token_ids = pad_sequence(
|
118 |
[
|