You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2022. It is now read-only.
@@ -87,10 +102,7 @@ data loaders. Those are coming soon.
87
102
- Added logging for the main process when running in distributed mode.
88
103
- Added a `TrainerCallback` object to support state sharing between batch and epoch-level training callbacks.
89
104
- Added support for .tar.gz in PretrainedModelInitializer.
90
-
- Added classes: `nn/samplers/samplers.py` with `MultinomialSampler`, `TopKSampler`, and `TopPSampler` for
91
-
sampling indices from log probabilities
92
-
- Made `BeamSearch` registrable.
93
-
- Added `top_k_sampling` and `type_p_sampling``BeamSearch` implementations.
105
+
- Made `BeamSearch` instantiable `from_params`.
94
106
- Pass `serialization_dir` to `Model` and `DatasetReader`.
95
107
- Added an optional `include_in_archive` parameter to the top-level of configuration files. When specified, `include_in_archive` should be a list of paths relative to the serialization directory which will be bundled up with the final archived model from a training run.
96
108
@@ -142,6 +154,7 @@ data loaders. Those are coming soon.
142
154
- Fixed `allennlp.nn.util.add_sentence_boundary_token_ids()` to use `device` parameter of input tensor.
143
155
- Be sure to close the TensorBoard writer even when training doesn't finish.
144
156
- Fixed the docstring for `PyTorchSeq2VecWrapper`.
157
+
- Fix intra word tokenization for `PretrainedTransformerTokenizer` when disabling fast tokenizer.
Copy file name to clipboardExpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -97,6 +97,8 @@ And others on the [AI2 AllenNLP blog](https://medium.com/ai2-blog/allennlp/home)
97
97
98
98
AllenNLP requires Python 3.6.1 or later. The preferred way to install AllenNLP is via `pip`. Just run `pip install allennlp` in your Python environment and you're good to go!
99
99
100
+
> ⚠️ If you're using Python 3.7 or greater, you should ensure that you don't have the PyPI version of `dataclasses` installed after running the above command, as this could cause issues on certain platforms. You can quickly check this by running `pip freeze | grep dataclasses`. If you see something like `dataclasses=0.6` in the output, then just run `pip uninstall -y dataclasses`.
101
+
100
102
If you need pointers on setting up an appropriate Python environment or would like to install AllenNLP using a different method, see below.
101
103
102
104
We support AllenNLP on Mac and Linux environments. We presently do not support Windows but are open to contributions.
0 commit comments