Lastly, in order to perform the experiments found in Section 5.4, we modiﬁed MultiHashEmbed
to accept a variable number of hash functions. We call
this MultiFewerHashEmbed.
The conﬁguration is again similar
to MultiHashEmbed with only a change to the
components.tok2vec.model.embed parameter:

Listing 3: Partial conﬁguration ﬁle for MultiFewerHashEmbed

1 [components.tok2vec.model.embed]
2 @architectures = "spacy.MultiFewerHashEmbed.v1"
3 num_hashes = 1
4 width = ${components.tok2vec.model.encode.width}
5 attrs = ["NORM","PREFIX","SUFFIX","SHAPE"]
6 rows = [5000,2500,2500,2500]
7 include_static_vectors = true

21
MULTI HASH EMBEDDINGS IN SPACY