Skip to content

add description for punctuation removing #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 8, 2017
Merged

add description for punctuation removing #42

merged 3 commits into from
Sep 8, 2017

Conversation

whalebot-helmsman
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Sep 8, 2017

Codecov Report

Merging #42 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #42   +/-   ##
=======================================
  Coverage   82.98%   82.98%           
=======================================
  Files          34       34           
  Lines        1704     1704           
=======================================
  Hits         1414     1414           
  Misses        290      290

@@ -109,7 +109,17 @@ def tokenize(self, text):
class DefaultTokenizer(WordTokenizer):
def tokenize(self, text):
tokens = super(DefaultTokenizer, self).tokenize(text)
# remove standalone commas and semicolons
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please use a block comment, as per pep8 (i.e. start each line with #)? Or make this an actual docstring.

#but it has negative consequences, e.g.
#etalon: [PER-B, PER-I, FUNC-B]
#predicted: [PER-B, PER-I, PER-I ]
#because we removed punctuation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another nitpick, sorry! Could you please add a whitespace between # and the actual comment, to follow pep8? It may also help readability to add a # on empty line, as pep8 says

Paragraphs inside a block comment are separated by a line containing a single #

@kmike kmike merged commit 7a42a23 into scrapinghub:master Sep 8, 2017
@kmike
Copy link
Member

kmike commented Sep 8, 2017

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants