Skip to content

Commit 06c1e9e

Browse files
luffycodesluffycodes
authored andcommitted
public master first commit
0 parents  commit 06c1e9e

35 files changed

Lines changed: 4479 additions & 0 deletions

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Attention Word Embeddings
2+
3+
The code is inspired from the following [github repository](https://github.com/florianmai/word2mat).
4+
5+
*AWE* is designed to learn rich word vector representations. It fuses the attention mechanism with the CBOW model of word2vec to address the limitations of the CBOW model. CBOW equally weights the context words when making the masked word prediction, which is inefficient, since
6+
some words have higher predictive value than others. We tackle this inefficiency by introducing
7+
our Attention Word Embedding (*AWE*) model. We also propose AWE-S, which incorporates subword information (code for which is in the fastText branch).
8+
9+
Details of this method and results can be found in our [COLING PAPER](https://arxiv.org/pdf/2006.00988.pdf).

__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2017-present, Facebook, Inc.
2+
# All rights reserved.
3+
#
4+
# This source code is licensed under the license found in the
5+
# LICENSE file in the root directory of this source tree.
6+
#
7+
8+
from __future__ import absolute_import
9+
10+
from senteval.engine import SE

0 commit comments

Comments
 (0)