Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Silin159 authored Feb 26, 2024
1 parent 830e846 commit 048568a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion BART_Rel_Pred/baseline/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@

logger = logging.getLogger(__name__)

ADD_TOKENS_VALUES = ["<fact_sep>", "<rel_bos>", "<rel_eos>"]
ADD_TOKENS_VALUES = ["<utter_sep>", "<past>", "<center>", "<future>", "<rel_bos>", "<rel_eos>",
"personx", "persony", "personz", "<fact_sep>", "<eos_fact>",
"<atlocation>", "<capableof>", "<causes>", "<desires>",
"<hasproperty>", "<hassubevent>", "<hinderedby>", "<isafter>",
"<isbefore>", "<madeupof>", "<notdesires>", "<objectuse>",
"<oeffect>", "<oreact>", "<owant>", "<xattr>", "<xeffect>",
"<xintent>", "<xneed>", "<xreact>", "<xreason>", "<xwant>"]


class BaseDataset(torch.utils.data.Dataset):
Expand Down

0 comments on commit 048568a

Please sign in to comment.