Skip to content

Commit

Permalink
GH-1494: remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
alanakbik committed Apr 26, 2020
1 parent 8d89c8c commit 6acd36f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions flair/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2044,8 +2044,6 @@ def _add_embeddings_internal(self, sentences: List[Sentence]) -> List[Sentence]:
with gradient_context:

# if this is not possible, use LM to generate embedding. First, get text sentences
# text_sentences = [f'{sentence.to_tokenized_string()} [REG] {sentence.to_tokenized_string()}' for sentence in sentences]
# print(text_sentences)
text_sentences = [sentence.to_tokenized_string() for sentence in sentences]

start_marker = "\n"
Expand All @@ -2064,7 +2062,6 @@ def _add_embeddings_internal(self, sentences: List[Sentence]) -> List[Sentence]:
sentence_text = sentence.to_tokenized_string()

offset_forward: int = len(start_marker)
# + len(sentence_text) + 7
offset_backward: int = len(sentence_text) + len(start_marker)

for token in sentence.tokens:
Expand Down

0 comments on commit 6acd36f

Please sign in to comment.