Skip to content

Commit 51db22e

Browse files
author
ningding97
committed
v1.0.0
1 parent e03a780 commit 51db22e

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

Diff for: dist/openprompt-1.0.0-py3-none-any.whl

30 Bytes
Binary file not shown.

Diff for: dist/openprompt-1.0.0.tar.gz

-236 Bytes
Binary file not shown.

Diff for: docs/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
project = 'OpenPrompt'
3232
copyright = '{}, {}, Licenced under the Apache License, Version 2.0'.format(datetime.datetime.now().year, author)
3333

34-
version = "v0.1.2"
35-
release = "v0.1.2"
34+
version = "v1.0.0"
35+
release = "v1.0.0"
3636

3737
html_theme = 'sphinx_rtd_theme'
3838
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

Diff for: tutorial/3.1_LMBFF.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
# args = parser.parse_args()
1313
from openprompt.data_utils.text_classification_dataset import SST2Processor
1414
dataset = {}
15-
dataset['train'] = SST2Processor().get_train_examples("./datasets/TextClassification/SST-2/16-shot/16-13")
16-
dataset['validation'] = SST2Processor().get_dev_examples("./datasets/TextClassification/SST-2/16-shot/16-13")
17-
dataset['test'] = SST2Processor().get_test_examples("./datasets/TextClassification/SST-2/16-shot/16-13")
15+
dataset['train'] = SST2Processor().get_train_examples("../datasets/TextClassification/SST-2/16-shot/16-13")
16+
dataset['validation'] = SST2Processor().get_dev_examples("../datasets/TextClassification/SST-2/16-shot/16-13")
17+
dataset['test'] = SST2Processor().get_test_examples("../datasets/TextClassification/SST-2/16-shot/16-13")
1818

1919
# %% [markdown]
2020
# ### 2. build initial verbalizer and template
@@ -114,6 +114,7 @@ def evaluate(model, val_dataloader):
114114

115115

116116
dataloader = PromptDataLoader(dataset['train'], template, template_generate_tokenizer, template_tokenizer_wrapper, batch_size=len(dataset['train']), decoder_max_length=128) # register all data at once
117+
print('pass!')
117118
for data in dataloader:
118119
if cuda:
119120
data = data.cuda()

0 commit comments

Comments
 (0)