Skip to content

Commit

Permalink
changed repository address
Browse files Browse the repository at this point in the history
  • Loading branch information
alanakbik committed Jan 7, 2020
1 parent 786df88 commit 05db95d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -10,8 +10,8 @@
long_description=open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
author="Alan Akbik",
author_email="alan.akbik@zalando.de",
url="https://github.com/zalandoresearch/flair",
author_email="alan.akbik@gmail.com",
url="https://github.com/flairNLP/flair",
packages=find_packages(exclude="tests"), # same as name
license="MIT",
install_requires=required,
Expand Down
9 changes: 9 additions & 0 deletions tests/test_embeddings.py
Expand Up @@ -42,6 +42,7 @@ def test_keep_batch_order():

assert torch.norm(sentences_1[0].embedding - sentences_2[1].embedding) == 0.0
assert torch.norm(sentences_1[0].embedding - sentences_2[1].embedding) == 0.0
del embeddings


@pytest.mark.integration
Expand All @@ -58,6 +59,7 @@ def test_stacked_embeddings():
token.clear_embeddings()

assert len(token.get_embedding()) == 0
del embeddings


@pytest.mark.integration
Expand Down Expand Up @@ -97,6 +99,7 @@ def test_fine_tunable_flair_embedding():
sentence.clear_embeddings()

assert len(sentence.get_embedding()) == 0
del embeddings


@pytest.mark.integration
Expand All @@ -115,6 +118,7 @@ def test_document_lstm_embeddings():
sentence.clear_embeddings()

assert len(sentence.get_embedding()) == 0
del embeddings


@pytest.mark.integration
Expand All @@ -133,6 +137,7 @@ def test_document_bidirectional_lstm_embeddings():
sentence.clear_embeddings()

assert len(sentence.get_embedding()) == 0
del embeddings


@pytest.mark.integration
Expand All @@ -151,6 +156,7 @@ def test_document_pool_embeddings():
sentence.clear_embeddings()

assert len(sentence.get_embedding()) == 0
del embeddings


@pytest.mark.integration
Expand All @@ -169,6 +175,7 @@ def test_document_pool_embeddings_nonlinear():
sentence.clear_embeddings()

assert len(sentence.get_embedding()) == 0
del embeddings


def init_document_embeddings():
Expand All @@ -193,6 +200,7 @@ def load_and_apply_word_embeddings(emb_type: str):
token.clear_embeddings()

assert len(token.get_embedding()) == 0
del embeddings


def load_and_apply_char_lm_embeddings(emb_type: str):
Expand All @@ -207,3 +215,4 @@ def load_and_apply_char_lm_embeddings(emb_type: str):
token.clear_embeddings()

assert len(token.get_embedding()) == 0
del embeddings

0 comments on commit 05db95d

Please sign in to comment.