2019-12-21 17:56:44 +03:00
|
|
|
[isort]
|
2020-08-24 18:03:01 +03:00
|
|
|
default_section = FIRSTPARTY
|
2019-12-21 17:56:44 +03:00
|
|
|
ensure_newline_before_comments = True
|
|
|
|
force_grid_wrap = 0
|
|
|
|
include_trailing_comma = True
|
|
|
|
known_first_party = transformers
|
2019-12-22 13:17:48 +03:00
|
|
|
known_third_party =
|
2020-01-10 23:35:45 +03:00
|
|
|
absl
|
2020-08-13 19:09:51 +03:00
|
|
|
conllu
|
2020-09-10 21:51:08 +03:00
|
|
|
datasets
|
2020-06-22 13:06:56 +03:00
|
|
|
elasticsearch
|
2019-12-22 13:17:48 +03:00
|
|
|
fairseq
|
2020-09-22 19:29:58 +03:00
|
|
|
faiss-cpu
|
2019-12-22 13:17:48 +03:00
|
|
|
fastprogress
|
2020-07-27 22:17:33 +03:00
|
|
|
fire
|
Replace mecab-python3 with fugashi for Japanese tokenization (#6086)
* Replace mecab-python3 with fugashi
This replaces mecab-python3 with fugashi for Japanese tokenization. I am
the maintainer of both projects.
Both projects are MeCab wrappers, so the underlying C++ code is the
same. fugashi is the newer wrapper and doesn't use SWIG, so for basic
use of the MeCab API it's easier to use.
This code insures the use of a version of ipadic installed via pip,
which should make versioning and tracking down issues easier.
fugashi has wheels for Windows, OSX, and Linux, which will help with
issues with installing old versions of mecab-python3 on Windows.
Compared to mecab-python3, because fugashi doesn't use SWIG, it doesn't
require a C++ runtime to be installed on Windows.
In adding this change I removed some code dealing with `cursor`,
`token_start`, and `token_end` variables. These variables didn't seem to
be used for anything, it is unclear to me why they were there.
I ran the tests and they passed, though I couldn't figure out how to run
the slow tests (`--runslow` gave an error) and didn't try testing with
Tensorflow.
* Style fix
* Remove unused variable
Forgot to delete this...
* Adapt doc with install instructions
* Fix typo
Co-authored-by: sgugger <sylvain.gugger@gmail.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2020-07-31 11:41:14 +03:00
|
|
|
fugashi
|
2019-12-22 13:17:48 +03:00
|
|
|
git
|
2020-01-10 23:35:45 +03:00
|
|
|
h5py
|
2020-06-06 00:27:31 +03:00
|
|
|
matplotlib
|
2019-12-22 13:17:48 +03:00
|
|
|
nltk
|
2020-01-10 23:35:45 +03:00
|
|
|
numpy
|
2019-12-22 13:17:48 +03:00
|
|
|
packaging
|
2020-06-17 23:39:17 +03:00
|
|
|
pandas
|
2019-12-22 13:17:48 +03:00
|
|
|
PIL
|
|
|
|
psutil
|
2020-06-25 06:58:11 +03:00
|
|
|
pytest
|
2020-02-20 19:50:05 +03:00
|
|
|
pytorch_lightning
|
2020-04-29 00:12:00 +03:00
|
|
|
rouge_score
|
|
|
|
sacrebleu
|
2019-12-22 13:17:48 +03:00
|
|
|
seqeval
|
|
|
|
sklearn
|
2020-07-07 20:23:01 +03:00
|
|
|
streamlit
|
2019-12-22 13:17:48 +03:00
|
|
|
tensorboardX
|
2020-01-10 23:36:46 +03:00
|
|
|
tensorflow
|
2019-12-22 13:17:48 +03:00
|
|
|
tensorflow_datasets
|
2020-05-01 16:05:47 +03:00
|
|
|
timeout_decorator
|
2020-01-13 23:44:33 +03:00
|
|
|
torch
|
2019-12-22 13:17:48 +03:00
|
|
|
torchtext
|
|
|
|
torchvision
|
2020-02-20 19:50:05 +03:00
|
|
|
torch_xla
|
2020-04-29 01:22:37 +03:00
|
|
|
tqdm
|
2019-12-22 13:17:48 +03:00
|
|
|
|
2019-12-21 17:56:44 +03:00
|
|
|
line_length = 119
|
|
|
|
lines_after_imports = 2
|
|
|
|
multi_line_output = 3
|
|
|
|
use_parentheses = True
|
2019-12-21 19:06:41 +03:00
|
|
|
|
|
|
|
[flake8]
|
2020-07-24 16:16:28 +03:00
|
|
|
ignore = E203, E501, E741, W503, W605
|
2019-12-21 19:06:41 +03:00
|
|
|
max-line-length = 119
|