Skip to content

Commit

Permalink
Bump version (#1005)
Browse files Browse the repository at this point in the history
* fix raiserror on -shuffle at preprocessing + bump version

* Update CHANGELOG.md
  • Loading branch information
vince62s authored Oct 24, 2018
1 parent f963890 commit 32af678
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

### Fixes and improvements

## [0.5.0](https://github.com/OpenNMT/OpenNMT-py/tree/v0.5.0) (2018-10-24)
* Fixed advance n_best beam in translate_batch_fast
* Fixed remove valid set vocab from total vocab
* New: Ability to reset optimizer when using train_from
* New: create_vocabulary tool + fix when loading existing vocab.

## [0.4.1](https://github.com/OpenNMT/OpenNMT-py/tree/v0.4.1) (2018-10-11)
* Fixed preprocessing files names, cleaning intermediary files.

Expand Down
2 changes: 1 addition & 1 deletion onmt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
__all__ = [onmt.inputters, onmt.encoders, onmt.decoders, onmt.models,
onmt.utils, onmt.modules, "Trainer"]

__version__ = "0.4.1"
__version__ = "0.5.0"
2 changes: 1 addition & 1 deletion onmt/opts.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def preprocess_opts(parser):

# Data processing options
group = parser.add_argument_group('Random')
group.add_argument('-shuffle', type=int, default=1,
group.add_argument('-shuffle', type=int, default=0,
help="Shuffle data")
group.add_argument('-seed', type=int, default=3435,
help="Random seed")
Expand Down
3 changes: 3 additions & 0 deletions preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ def main():
if (opt.max_shard_size > 0):
raise AssertionError("-max_shard_size is deprecated, please use \
-shard_size (number of examples) instead.")
if (opt.shuffle > 0):
raise AssertionError("-shuffle is not implemented, please make sure \
you shuffle your data before pre-processing.")

init_logger(opt.log_file)
logger.info("Extracting features...")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(name='OpenNMT-py',
description='A python implementation of OpenNMT',
version='0.4.1',
version='0.5.0',

packages=['onmt', 'onmt.encoders', 'onmt.modules', 'onmt.tests',
'onmt.translate', 'onmt.decoders', 'onmt.inputters',
Expand Down

0 comments on commit 32af678

Please sign in to comment.