-
Notifications
You must be signed in to change notification settings - Fork 31
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
Readme and logging #30
Conversation
src/corporacreator/corpora.py
Outdated
_logger = logging.getLogger(__name__) | ||
_logger.setLevel(logging.DEBUG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command line option -vv
already allows for debug logging. This is not needed.
src/corporacreator/corpora.py
Outdated
_logger = logging.getLogger(__name__) | ||
_logger.setLevel(logging.DEBUG) | ||
_logger.addHandler(logging.FileHandler('corpora.log')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command line option -vv
already allows for debug logging. This is not needed.
src/corporacreator/corpus.py
Outdated
_logger = logging.getLogger(__name__) | ||
_logger.setLevel(logging.DEBUG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command line option -vv
already allows for debug logging. This is not needed.
src/corporacreator/corpus.py
Outdated
_logger = logging.getLogger(__name__) | ||
_logger.setLevel(logging.DEBUG) | ||
_logger.addHandler(logging.FileHandler('corpus.log')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command line option -vv
already allows for debug logging. This is not needed.
src/corporacreator/tool.py
Outdated
@@ -7,7 +7,8 @@ | |||
|
|||
|
|||
_logger = logging.getLogger(__name__) | |||
|
|||
_logger.setLevel(logging.DEBUG) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command line option -vv
already allows for debug logging. This is not needed.
src/corporacreator/tool.py
Outdated
@@ -7,7 +7,8 @@ | |||
|
|||
|
|||
_logger = logging.getLogger(__name__) | |||
|
|||
_logger.setLevel(logging.DEBUG) | |||
_logger.addHandler(logging.FileHandler('tool.log')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Command line option -vv
already allows for debug logging. This is not needed.
For example... (.virtualenv) kdavis-19htdh:CorporaCreator kdavis$ create-corpora --help
usage: create-corpora [-h] [--version] [-v] [-vv] -f TSV_FILENAME -d DIRECTORY
[-s DUPLICATE_SENTENCE_COUNT]
Creates tsv files for Common Voice corpora
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
-v, --verbose set loglevel to INFO
-vv, --very-verbose set loglevel to DEBUG
-f TSV_FILENAME, --file TSV_FILENAME
Path to the Common Voice tsv for all languages
-d DIRECTORY, --directory DIRECTORY
Directory in which to save the Common Voice corpora
-s DUPLICATE_SENTENCE_COUNT, --duplicate-sentence-count DUPLICATE_SENTENCE_COUNT
Maximum number of times a sentence can appear in a
corpus. |
Fixed #31 (et preprocessor contains invalid python)
Small changes to README (python must be python3, and
CorporaCreator kdavis$
is a little confusing with the whitespace).Also, added to the
logger
to be more verbose at the terminal and print to log files.