Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ekphrasis/classes/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, pipeline=None, lowercase=False, verbose=False,

self.build(pipeline)

self.pipeline.append("(?:\S)") # CATCH ALL remaining terms
self.pipeline.append(r"(?:\S)") # CATCH ALL remaining terms
self.tok = re.compile(r"({})".format("|".join(self.pipeline)))

def add_to_pipeline(self, term):
Expand Down Expand Up @@ -220,7 +220,7 @@ def __init__(self, lowercase=False, verbose=False, debug=False, **kwargs):
# keep repeated puncts as one term
# pipeline.append(r"")

pipeline.append("(?:\S)") # CATCH ALL remaining terms
pipeline.append(r"(?:\S)") # CATCH ALL remaining terms

self.tok = re.compile(r"({})".format("|".join(pipeline)))

Expand Down
18 changes: 9 additions & 9 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
tqdm==4.19.4
colorama==0.3.9
matplotlib==2.2.2
setuptools==36.2.5
termcolor==1.1.0
numpy==1.19.1
nltk==3.2.4
ujson==1.35
ftfy==4.4.3
tqdm==4.67.1
colorama==0.4.6
matplotlib==3.10.1
setuptools==80.0.0
termcolor==3.0.1
numpy==2.2.5
nltk==3.9.1
ujson==5.10.0
ftfy==6.3.1
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[metadata]
description-file = README.md
description_file = README.md