Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
amaiya committed Jul 2, 2020
2 parents 90c4deb + 2ff70e4 commit d80b8fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ Most recent releases are shown at the top. Each release shows:
- **Changed**: Additional parameters, changes to inputs or outputs, etc
- **Fixed**: Bug fixes that don't change documented behaviour

## 0.17.5 (2020-07-02)

### New:
- N/A

### Changed
- N/A

### Fixed:
- Explicitly supply `'truncate='longest_first'` to prevent sentence pair classification from breaking in `transformers==3.0.0`
- Fixed typo in `encode_plus` invocation


## 0.17.4 (2020-07-02)

### New:
Expand Down
2 changes: 1 addition & 1 deletion ktrain/text/preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def hf_convert_example(text_a, text_b=None, tokenizer=None,
add_special_tokens=True,
return_token_type_ids=True,
max_length=max_length,
truncate='longest_first'
truncation='longest_first'
)
input_ids, token_type_ids = inputs["input_ids"], inputs["token_type_ids"]

Expand Down
2 changes: 1 addition & 1 deletion ktrain/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__all__ = ['__version__']
__version__ = '0.17.4'
__version__ = '0.17.5'

0 comments on commit d80b8fd

Please sign in to comment.