Merge branch 'develop' of https://github.com/explosion/spaCy into develop

This commit is contained in:
Matthew Honnibal 2020-08-22 17:12:09 +02:00
commit 8dfc4cbfe7
3 changed files with 103 additions and 6 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -20,9 +20,9 @@ so that it refers to a different registered function. Once the component has
been created, its model instance has already been assigned, so you cannot change been created, its model instance has already been assigned, so you cannot change
its model architecture. The architecture is like a recipe for the network, and its model architecture. The architecture is like a recipe for the network, and
you can't change the recipe once the dish has already been prepared. You have to you can't change the recipe once the dish has already been prepared. You have to
make a new one. make a new one.
<!-- TODO: maybe we can come up with an illustration here that shows how the pieces fit together? --> ![Diagram of a pipeline component with its model](../images/layers-architectures.svg)
## Type signatures {#type-sigs} ## Type signatures {#type-sigs}
@ -137,9 +137,9 @@ Thinc uses a special class, [`Shim`](https://thinc.ai/docs/api-model#shim), to
hold references to external objects. This allows each wrapper space to define a hold references to external objects. This allows each wrapper space to define a
custom type, with whatever attributes and methods are helpful, to assist in custom type, with whatever attributes and methods are helpful, to assist in
managing the communication between Thinc and the external library. The managing the communication between Thinc and the external library. The
[`Model`](/docs/api-model#model) class holds `shim` instances in a separate [`Model`](https://thinc.ai/docs/api-model#model) class holds `shim` instances in
list, and communicates with the shims about updates, serialization, changes of a separate list, and communicates with the shims about updates, serialization,
device, etc. changes of device, etc.
The wrapper will receive each batch of inputs, convert them into a suitable form The wrapper will receive each batch of inputs, convert them into a suitable form
for the underlying model instance, and pass them over to the shim, which will for the underlying model instance, and pass them over to the shim, which will

View File

@ -12,7 +12,7 @@
background: var(--color-subtle-light) background: var(--color-subtle-light)
color: var(--color-subtle-dark) color: var(--color-subtle-dark)
border-radius: 50% border-radius: 50%
padding: 0.5rem padding: 0.5rem 0.65rem 0.5rem 0
transition: color 0.2s ease transition: color 0.2s ease
float: right float: right
margin-left: 3rem margin-left: 3rem