Skip to content

Commit

Permalink
GH-12: removed commented out code + gitignore spam
Browse files Browse the repository at this point in the history
  • Loading branch information
aakbik authored and tabergma committed Jul 31, 2018
1 parent f8f0397 commit 2ad6706
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ wheels/
MANIFEST

.idea/
resources/
test_*

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
3 changes: 1 addition & 2 deletions flair/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import torch

import flair
# from flair.models.language_model import LanguageModel
from .data import Dictionary, Token, Sentence, TaggedCorpus
from .file_utils import cached_path

Expand Down Expand Up @@ -88,7 +87,7 @@ def embedding_type(self) -> str:
class StackedEmbeddings(TokenEmbeddings):
"""A stack of embeddings, used if you need to combine several different embedding types."""

def __init__(self, embeddings: List[Embeddings], detach: bool = True):
def __init__(self, embeddings: List[TokenEmbeddings], detach: bool = True):
"""The constructor takes a list of embeddings to be combined."""
super().__init__()

Expand Down
1 change: 0 additions & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from flair.models import SequenceTagger

tagger: SequenceTagger = SequenceTagger.load('ner')
# tagger: SequenceTagger = SequenceTagger.load_from_file('resources/taggers/example-ner/model.pt')

sentence: Sentence = Sentence('George Washington went to Washington .')
tagger.predict(sentence)
Expand Down

0 comments on commit 2ad6706

Please sign in to comment.