Skip to content

Conversation

bact
Copy link
Member

@bact bact commented Oct 21, 2018

  • precompile regexes
  • more description for each file (at the beginning)
  • naming convention: rename thai2rom -> ThaiTransliterator [CamelCase for Class], romanization() -> romanize() [function name should be a verb]
  • update examples and tests to new names
  • add __ prefix for private members (ThaiTransliterator)
  • make sure a function will always return something -- if no engine found, use default (romanize(), sentiment(), spell(), pos_tag())
  • sort imports, remove unused imports
  • make consistent indentation (replace tabs with spaces, make it 4-space indent)
  • remove Python 2 condition checks

bact added 3 commits October 21, 2018 18:58
- precompile regexes
- more description for each file (at the beginning)
- naming convention: rename thai2rom -> ThaiTransliterator [CamelCase for Class], romanization() -> romanize() [function name should be a verb]
- update examples and tests to new names
- add __ prefix for private members (ThaiTransliterator)
- make sure a function will always return something -- if no engine found, use default (romanize(), sentiment(), spell())
- sort imports, remove unused imports
- make consistent indentation (replace tabs with spaces)
- make indentation
- make sure pos tagger will always return something (will use "unigrame" and "pud" as default)
@coveralls
Copy link

Coverage Status

Coverage increased (+0.5%) to 53.597% when pulling f45afa1 on bact:dev into 8f171ca on PyThaiNLP:dev.

@wannaphong wannaphong added this to the 1.8 milestone Oct 21, 2018
@wannaphong wannaphong merged commit ba39115 into PyThaiNLP:dev Oct 21, 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.

3 participants