Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit d2aea97

Browse files
Fix typo in __str__ (#4874)
* Fix typo in __str__ * Update CHANGELOG.md * Update CHANGELOG.md Co-authored-by: Evan Pete Walsh <[email protected]>
1 parent 6a8d425 commit d2aea97

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212

1313
- Added a new learning rate scheduler: `CombinedLearningRateScheduler`. This can be used to combine different LR schedulers, using one after the other.
1414

15+
### Fixed
16+
17+
- Fixed typo with `LabelField` string representation: removed trailing apostrophe.
1518

1619
## [v1.3.0](https://github.com/allenai/allennlp/releases/tag/v1.3.0) - 2020-12-15
1720

allennlp/data/fields/label_field.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def empty_field(self):
106106
return LabelField(-1, self._label_namespace, skip_indexing=True)
107107

108108
def __str__(self) -> str:
109-
return f"LabelField with label: {self.label} in namespace: '{self._label_namespace}'.'"
109+
return f"LabelField with label: {self.label} in namespace: '{self._label_namespace}'."
110110

111111
def __len__(self):
112112
return 1

0 commit comments

Comments
 (0)