Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron committed Feb 4, 2019
1 parent ed449b6 commit 853f818
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions quantulum3/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

_LOGGER = logging.getLogger(__name__)


def _get_classifier(lang='en_US'):
return language.get('classifier', lang)

Expand Down
3 changes: 2 additions & 1 deletion quantulum3/tests/test_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def test_wikipedia_pages(self, lang):
try:
wikipedia.page(unit.uri.replace('_', ' '), auto_suggest=False)
pass
except (wikipedia.PageError, wikipedia.DisambiguationError) as e: # pragma: no cover
except (wikipedia.PageError,
wikipedia.DisambiguationError) as e: # pragma: no cover
err.append((unit, e))
if err: # pragma: no cover
self.fail("Problematic pages:\n{}".format("\n".join(
Expand Down
5 changes: 3 additions & 2 deletions scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
parser.add_argument('--{}'.format(arg['dest']), **arg)
args = parser.parse_args()

_LOGGER.info('Start training for language {}, {}storing the classifier'.format(
args.lang, '' if args.store else 'not '))
_LOGGER.info(
'Start training for language {}, {}storing the classifier'.format(
args.lang, '' if args.store else 'not '))
train_classifier(store=args.store, lang=args.lang)
_LOGGER.info('Done')

0 comments on commit 853f818

Please sign in to comment.