-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store activations in Doc
s when save_activations
is enabled
#11002
Commits on Jun 22, 2022
-
Store activations in Doc when
store_activations
is enabledThis change adds the new `activations` attribute to `Doc`. This attribute can be used by trainable pipes to store their activations, probabilities, and guesses for downstream users. As an example, this change modifies the `tagger` and `senter` pipes to add an `store_activations` option. When this option is enabled, the probabilities and guesses are stored in `set_annotations`.
Configuration menu - View commit details
-
Copy full SHA for b71c604 - Browse repository at this point
Copy the full SHA b71c604View commit details -
Change type of
store_activations
toUnion[bool, List[str]]
When the value is: - A bool: all activations are stored when set to `True`. - A List[str]: the activations named in the list are stored
Configuration menu - View commit details
-
Copy full SHA for c3da32b - Browse repository at this point
Copy the full SHA c3da32bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 789a447 - Browse repository at this point
Copy the full SHA 789a447View commit details -
Configuration menu - View commit details
-
Copy full SHA for acf47e8 - Browse repository at this point
Copy the full SHA acf47e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42526a6 - Browse repository at this point
Copy the full SHA 42526a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8772b9c - Browse repository at this point
Copy the full SHA 8772b9cView commit details
Commits on Jun 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1c9be0d - Browse repository at this point
Copy the full SHA 1c9be0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 009a960 - Browse repository at this point
Copy the full SHA 009a960View commit details
Commits on Jun 24, 2022
-
Extend tagger and senter tests
So that they, like the other tests, also check that we get no activations if no activations were requested.
Configuration menu - View commit details
-
Copy full SHA for c8a12c5 - Browse repository at this point
Copy the full SHA c8a12c5View commit details
Commits on Jun 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 508b96f - Browse repository at this point
Copy the full SHA 508b96fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3b13f17 - Browse repository at this point
Copy the full SHA 3b13f17View commit details -
Configuration menu - View commit details
-
Copy full SHA for df513be - Browse repository at this point
Copy the full SHA df513beView commit details
Commits on Jul 6, 2022
-
Start errors/warnings at higher numbers to avoid merge conflicts
Between the master and v4 branches.
Configuration menu - View commit details
-
Copy full SHA for 5eeb2e8 - Browse repository at this point
Copy the full SHA 5eeb2e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 403b1f1 - Browse repository at this point
Copy the full SHA 403b1f1View commit details
Commits on Aug 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 288d27e - Browse repository at this point
Copy the full SHA 288d27eView commit details
Commits on Aug 4, 2022
-
Replace store_activations setter by set_store_activations method
Setters that take a different type than what the getter returns are still problematic for MyPy. Replace the setter by a method, so that type inference works everywhere.
Configuration menu - View commit details
-
Copy full SHA for 51f72e4 - Browse repository at this point
Copy the full SHA 51f72e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e7b958 - Browse repository at this point
Copy the full SHA 6e7b958View commit details
Commits on Aug 5, 2022
-
Revert "Use dict comprehension suggested by @svlandeg"
This reverts commit 6e7b958.
Configuration menu - View commit details
-
Copy full SHA for 230264d - Browse repository at this point
Copy the full SHA 230264dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57caae8 - Browse repository at this point
Copy the full SHA 57caae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ce36f34 - Browse repository at this point
Copy the full SHA ce36f34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75d76cb - Browse repository at this point
Copy the full SHA 75d76cbView commit details -
Apply suggestions from code review
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c792019 - Browse repository at this point
Copy the full SHA c792019View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cfbb93 - Browse repository at this point
Copy the full SHA 1cfbb93View commit details
Commits on Aug 29, 2022
-
Make the
TrainablePipe.store_activations
property a boolThis means that we can also bring back `store_activations` setter.
Configuration menu - View commit details
-
Copy full SHA for aea5337 - Browse repository at this point
Copy the full SHA aea5337View commit details -
Remove
TrainablePipe.activations
We do not need to enumerate the activations anymore since `store_activations` is `bool`.
Configuration menu - View commit details
-
Copy full SHA for 8c2652d - Browse repository at this point
Copy the full SHA 8c2652dView commit details
Commits on Aug 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8f84e6e - Browse repository at this point
Copy the full SHA 8f84e6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3937abd - Browse repository at this point
Copy the full SHA 3937abdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2290a04 - Browse repository at this point
Copy the full SHA 2290a04View commit details -
Error E1400 is not used anymore
This error was used when activations were still `Union[bool, List[str]]`.
Configuration menu - View commit details
-
Copy full SHA for cdbda0b - Browse repository at this point
Copy the full SHA cdbda0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 51c87c5 - Browse repository at this point
Copy the full SHA 51c87c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d245da0 - Browse repository at this point
Copy the full SHA d245da0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 699a187 - Browse repository at this point
Copy the full SHA 699a187View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f80e80 - Browse repository at this point
Copy the full SHA 6f80e80View commit details
Commits on Aug 31, 2022
-
- "probs" -> "probabilities" - "guesses" -> "label_ids", except in the edit tree lemmatizer, where "guesses" -> "tree_ids".
Configuration menu - View commit details
-
Copy full SHA for cd6e4fa - Browse repository at this point
Copy the full SHA cd6e4faView commit details -
This warning was used when we still allowed the user to specify which activations to save.
Configuration menu - View commit details
-
Copy full SHA for 2593dad - Browse repository at this point
Copy the full SHA 2593dadView commit details
Commits on Sep 7, 2022
-
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ac5b1fd - Browse repository at this point
Copy the full SHA ac5b1fdView commit details
Commits on Sep 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b828954 - Browse repository at this point
Copy the full SHA b828954View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bd5730 - Browse repository at this point
Copy the full SHA 0bd5730View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8aba93e - Browse repository at this point
Copy the full SHA 8aba93eView commit details -
Configuration menu - View commit details
-
Copy full SHA for a32dd70 - Browse repository at this point
Copy the full SHA a32dd70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a16b7b - Browse repository at this point
Copy the full SHA 3a16b7bView commit details -
Revert "spancat: replace a cast by an assertion"
This reverts commit 0bd5730.
Configuration menu - View commit details
-
Copy full SHA for fc78ed4 - Browse repository at this point
Copy the full SHA fc78ed4View commit details