Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hironsan committed Oct 17, 2020
1 parent eae63ed commit d88969e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions seqeval/scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class IOE1(Token):
class IOB2(Token):
allowed_prefix = Prefix.I | Prefix.O | Prefix.B
start_patterns = {
(allowed_prefix, Prefix.B, Tag.ANY)
(Prefix.ANY, Prefix.B, Tag.ANY)
}
inside_patterns = {
(Prefix.B, Prefix.I, Tag.SAME),
Expand Down Expand Up @@ -275,7 +275,6 @@ def __init__(self, sequences: List[List[str]], scheme: Type[Token], suffix: bool
Tokens(seq, scheme=scheme, suffix=suffix, delimiter=delimiter, sent_id=sent_id).entities
for sent_id, seq in enumerate(sequences)
]
self.sequences = sequences

def filter(self, tag_name: str):
entities = {entity for entity in chain(*self.entities) if entity.tag == tag_name}
Expand Down

0 comments on commit d88969e

Please sign in to comment.