Skip to content

Commit

Permalink
use const for tokenizer regex
Browse files Browse the repository at this point in the history
  • Loading branch information
undertherain committed Apr 25, 2018
1 parent 991db74 commit 0749248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vecto/corpus/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def gen(self, re_pattern):
yield(token)


def load_file_as_ids(path, vocabulary, gzipped=None, downcase=True, re_pattern=r"[\w\-']+|[.,!?…]"):
def load_file_as_ids(path, vocabulary, gzipped=None, downcase=True, re_pattern=_default_tokenizer_patter):
# use proper tokenizer from cooc
# options to ignore sentence bounbdaries
# specify what to do with missing words
Expand Down

0 comments on commit 0749248

Please sign in to comment.