代码拉取完成,页面将自动刷新
install:
pip install -e .
pip install -r requirements-dev.txt
pip list
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
clean-test:
-rm -r .coverage*
-rm -r data
-rm -r runs
-rm -r outputs
-rm -r cache_dir
-rm -r wandb
-rm train.txt
formatter:
black --line-length 119 simpletransformers tests --exclude simpletransformers/experimental\
lint: clean
flake8 simpletransformers tests --exclude=simpletransformers/experimental
black --check --line-length 119 . simpletransformers tests --exclude simpletransformers/experimental
types:
pytype --keep-going simpletransformers --exclude simpletransformers/experimental
test: clean
pytest tests --cov simpletransformers/classification simpletransformers/ner simpletransformers/question_answering simpletransformers/language_modeling simpletransformers/t5 simpletransformers/seq2seq
test-lm: clean
pytest tests/language_modeling --cov simpletransformers/language_modeling
# if this runs through we can be sure the readme is properly shown on pypi
check-readme:
python setup.py check --restructuredtext
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。