Skip to content

Commit

Permalink
Abstract base class style for Tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
naoyak committed May 2, 2017
1 parent 7425e73 commit 4dd6e7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nltk/tokenize/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from nltk.internals import overridden
from nltk.tokenize.util import string_span_tokenize


@add_metaclass(ABCMeta)
class TokenizerI(object):
"""
Expand Down Expand Up @@ -74,5 +75,3 @@ def tokenize(self, s):
def span_tokenize(self, s):
for span in string_span_tokenize(s, self._string):
yield span


0 comments on commit 4dd6e7a

Please sign in to comment.