Skip to content

Commit 32af678

Browse files
authored
Bump version (OpenNMT#1005)
* fix raiserror on -shuffle at preprocessing + bump version * Update CHANGELOG.md
1 parent f963890 commit 32af678

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
### Fixes and improvements
1010

11+
## [0.5.0](https://github.com/OpenNMT/OpenNMT-py/tree/v0.5.0) (2018-10-24)
12+
* Fixed advance n_best beam in translate_batch_fast
13+
* Fixed remove valid set vocab from total vocab
14+
* New: Ability to reset optimizer when using train_from
15+
* New: create_vocabulary tool + fix when loading existing vocab.
16+
1117
## [0.4.1](https://github.com/OpenNMT/OpenNMT-py/tree/v0.4.1) (2018-10-11)
1218
* Fixed preprocessing files names, cleaning intermediary files.
1319

onmt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717
__all__ = [onmt.inputters, onmt.encoders, onmt.decoders, onmt.models,
1818
onmt.utils, onmt.modules, "Trainer"]
1919

20-
__version__ = "0.4.1"
20+
__version__ = "0.5.0"

onmt/opts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def preprocess_opts(parser):
221221

222222
# Data processing options
223223
group = parser.add_argument_group('Random')
224-
group.add_argument('-shuffle', type=int, default=1,
224+
group.add_argument('-shuffle', type=int, default=0,
225225
help="Shuffle data")
226226
group.add_argument('-seed', type=int, default=3435,
227227
help="Random seed")

preprocess.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ def main():
207207
if (opt.max_shard_size > 0):
208208
raise AssertionError("-max_shard_size is deprecated, please use \
209209
-shard_size (number of examples) instead.")
210+
if (opt.shuffle > 0):
211+
raise AssertionError("-shuffle is not implemented, please make sure \
212+
you shuffle your data before pre-processing.")
210213

211214
init_logger(opt.log_file)
212215
logger.info("Extracting features...")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(name='OpenNMT-py',
66
description='A python implementation of OpenNMT',
7-
version='0.4.1',
7+
version='0.5.0',
88

99
packages=['onmt', 'onmt.encoders', 'onmt.modules', 'onmt.tests',
1010
'onmt.translate', 'onmt.decoders', 'onmt.inputters',

0 commit comments

Comments
 (0)