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

Commit

Permalink
Adding bag_of_embeddings as an alternate name for the boe encoder (Is…
Browse files Browse the repository at this point in the history
…sue #2268) (#2521)
  • Loading branch information
saujasv authored and matt-gardner committed Feb 18, 2019
1 parent 9f87aa5 commit 2f2b481
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions allennlp/modules/seq2vec_encoders/boe_encoder.py
Expand Up @@ -6,6 +6,7 @@
from allennlp.nn.util import get_lengths_from_binary_sequence_mask

@Seq2VecEncoder.register("boe")
@Seq2VecEncoder.register("bag_of_embeddings")
class BagOfEmbeddingsEncoder(Seq2VecEncoder):
"""
A ``BagOfEmbeddingsEncoder`` is a simple :class:`Seq2VecEncoder` which simply sums the embeddings
Expand Down

0 comments on commit 2f2b481

Please sign in to comment.