Skip to content
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

Clean code (/corpus, /tools, /ulmfit) #132

Merged
merged 3 commits into from
Oct 20, 2018
Merged

Clean code (/corpus, /tools, /ulmfit) #132

merged 3 commits into from
Oct 20, 2018

Conversation

bact
Copy link
Member

@bact bact commented Oct 20, 2018

  • put corpus database url into CORPUS_DB_URL constant
  • sort imports, remove unused imports
  • add __ prefix for private class members
  • precompile patterns at initialization (ThaiTokenizer class)
  • use "not" for condition comparison (in a reasonable situation) with booleans (as suggested by PEP8)
  • make indent more consistent

- sort imports, remove unused imports
- add __ prefix for private member
- precompile patterns at initialization (ThaiTokenizer class)
- use "not" for condition comparison (in a reasonable situation) with booleans (as suggested by PEP8)
- make indent more consistent
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 53.081% when pulling a7363d3 on bact:dev into 64519a5 on PyThaiNLP:dev.

@coveralls
Copy link

coveralls commented Oct 20, 2018

Coverage Status

Coverage increased (+3.6%) to 56.829% when pulling 7d71561 on bact:dev into 64519a5 on PyThaiNLP:dev.

@wannaphong wannaphong merged commit 8f171ca into PyThaiNLP:dev Oct 20, 2018
@wannaphong wannaphong mentioned this pull request Nov 3, 2018
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.

None yet

3 participants