Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==> Starting check()...
- ========================================= test session starts ==========================================
- platform linux -- Python 3.12.3, pytest-8.1.2, pluggy-1.4.0
- benchmark: 4.0.0 (defaults: timer=time.perf_counter disable_gc=False min_rounds=5 min_time=0.000005 max_time=1.0 calibration_precision=10 warmup=False warmup_iterations=100000)
- rootdir: /home/user/.cache/yay/python-fugashi/src/fugashi
- plugins: benchmark-4.0.0, localserver-0.8.1, typeguard-4.2.1, cov-4.1.0, flake8-1.1.1, anyio-4.3.0, subtests-0.12.1
- collected 19 items
- fugashi/tests/test_basic.py FFFFFFFFFFF.FFF [ 78%]
- fugashi/tests/test_ipadic.py ... [ 94%]
- fugashi/tests/test_nbest.py s [100%]
- =============================================== FAILURES ===============================================
- _ test_wakati[\u3059\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u306e\u5185-\u3059\u3082\u3082 \u3082 \u3082\u3082 \u3082 \u3082\u3082 \u306e \u5185] _
- text = 'すももももももももの内', wakati = 'すもも も もも も もも の 内'
- @pytest.mark.parametrize('text,wakati', WAKATI_TESTS)
- def test_wakati(text, wakati):
- > tagger = Tagger('-Owakati')
- fugashi/tests/test_basic.py:33:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- ______ test_wakati[\u65e5\u672c\u8a9e\u3067\u3059\u3088-\u65e5\u672c \u8a9e \u3067\u3059 \u3088] _______
- text = '日本語ですよ', wakati = '日本 語 です よ'
- @pytest.mark.parametrize('text,wakati', WAKATI_TESTS)
- def test_wakati(text, wakati):
- > tagger = Tagger('-Owakati')
- fugashi/tests/test_basic.py:33:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _ test_wakati[\u6df1\u6d77\u9b5a\u306f\u3001\u6df1\u6d77\u306b\u751f\u606f\u3059\u308b\u9b5a\u985e\u306e\u7dcf\u79f0\u3002-\u6df1\u6d77 \u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002] _
- text = '深海魚は、深海に生息する魚類の総称。', wakati = '深海 魚 は 、 深海 に 生息 する 魚類 の 総称 。'
- @pytest.mark.parametrize('text,wakati', WAKATI_TESTS)
- def test_wakati(text, wakati):
- > tagger = Tagger('-Owakati')
- fugashi/tests/test_basic.py:33:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- ___________ test_tokens[\u3042\u306a\u305f\u306f\u65b0\u7c73\u306e\u9b54\u5973\u3002-saved0] ___________
- text = 'あなたは新米の魔女。', saved = ['あなた', 'は', '新米', 'の', '魔女', '。']
- @pytest.mark.parametrize('text,saved', TOKENIZER_TESTS)
- def test_tokens(text, saved):
- # testing the token objects is tricky, so instead just check surfaces
- #TODO: maybe save serialized nodes to compare?
- > tagger = Tagger()
- fugashi/tests/test_basic.py:40:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _ test_tokens[\u30d1\u30fc\u30c8\u30ca\u30fc\u3067\u3042\u308b\u732b\u3068\u5171\u306b\u3001\u898b\u77e5\u3089\u306c\u753a\u3078\u3084\u3063\u3066\u304d\u305f\u3070\u304b\u308a\u3067\u3059\u3002-saved1] _
- text = 'パートナーである猫と共に、見知らぬ町へやってきたばかりです。', saved = ['パートナー', 'で', 'ある', '猫', 'と', '共', ...]
- @pytest.mark.parametrize('text,saved', TOKENIZER_TESTS)
- def test_tokens(text, saved):
- # testing the token objects is tricky, so instead just check surfaces
- #TODO: maybe save serialized nodes to compare?
- > tagger = Tagger()
- fugashi/tests/test_basic.py:40:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _ test_nbest[\u5916\u56fd\u4eba\u53c2\u653f\u6a29-\u5916\u56fd \u4eba\u53c2 \u653f\u6a29 \n\u5916\u56fd \u4eba \u53c2\u653f \u6a29] _
- text = '外国人参政権', saved = '外国 人参 政権 \n外国 人 参政 権'
- @pytest.mark.parametrize('text,saved', NBEST_TESTS)
- def test_nbest(text, saved):
- > tagger = Tagger('-Owakati')
- fugashi/tests/test_basic.py:46:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _ test_nbest[\u6df1\u6d77\u9b5a\u306f\u3001\u6df1\u6d77\u306b\u751f\u606f\u3059\u308b\u9b5a\u985e\u306e\u7dcf\u79f0\u3002-\u6df1\u6d77 \u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002 \n\u6df1 \u6d77\u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002] _
- text = '深海魚は、深海に生息する魚類の総称。', saved = '深海 魚 は 、 深海 に 生息 する 魚類 の 総称 。 \n深 海魚 は 、 深海 に 生息 する 魚類 の 総称 。'
- @pytest.mark.parametrize('text,saved', NBEST_TESTS)
- def test_nbest(text, saved):
- > tagger = Tagger('-Owakati')
- fugashi/tests/test_basic.py:46:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _ test_nbest[\u6771\u4eac\u90fd\u306e\u5927\u4eba\u6c17\u306a\u3044\u4e3b\u6750\u6599-\u6771\u4eac \u90fd \u306e \u5927 \u4eba\u6c17 \u306a\u3044 \u4e3b\u6750 \u6599 \n\u6771\u4eac \u90fd \u306e \u5927 \u4eba\u6c17 \u306a\u3044 \u4e3b \u6750\u6599] _
- text = '東京都の大人気ない主材料', saved = '東京 都 の 大 人気 ない 主材 料 \n東京 都 の 大 人気 ない 主 材料'
- @pytest.mark.parametrize('text,saved', NBEST_TESTS)
- def test_nbest(text, saved):
- > tagger = Tagger('-Owakati')
- fugashi/tests/test_basic.py:46:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _ test_nbest_nodes[\u5916\u56fd\u4eba\u53c2\u653f\u6a29-\u5916\u56fd \u4eba\u53c2 \u653f\u6a29 \n\u5916\u56fd \u4eba \u53c2\u653f \u6a29] _
- text = '外国人参政権', saved = '外国 人参 政権 \n外国 人 参政 権'
- @pytest.mark.parametrize('text,saved', NBEST_TESTS)
- def test_nbest_nodes(text, saved):
- > tagger = Tagger()
- fugashi/tests/test_basic.py:51:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _ test_nbest_nodes[\u6df1\u6d77\u9b5a\u306f\u3001\u6df1\u6d77\u306b\u751f\u606f\u3059\u308b\u9b5a\u985e\u306e\u7dcf\u79f0\u3002-\u6df1\u6d77 \u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002 \n\u6df1 \u6d77\u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002] _
- text = '深海魚は、深海に生息する魚類の総称。', saved = '深海 魚 は 、 深海 に 生息 する 魚類 の 総称 。 \n深 海魚 は 、 深海 に 生息 する 魚類 の 総称 。'
- @pytest.mark.parametrize('text,saved', NBEST_TESTS)
- def test_nbest_nodes(text, saved):
- > tagger = Tagger()
- fugashi/tests/test_basic.py:51:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _ test_nbest_nodes[\u6771\u4eac\u90fd\u306e\u5927\u4eba\u6c17\u306a\u3044\u4e3b\u6750\u6599-\u6771\u4eac \u90fd \u306e \u5927 \u4eba\u6c17 \u306a\u3044 \u4e3b\u6750 \u6599 \n\u6771\u4eac \u90fd \u306e \u5927 \u4eba\u6c17 \u306a\u3044 \u4e3b \u6750\u6599] _
- text = '東京都の大人気ない主材料', saved = '東京 都 の 大 人気 ない 主材 料 \n東京 都 の 大 人気 ない 主 材料'
- @pytest.mark.parametrize('text,saved', NBEST_TESTS)
- def test_nbest_nodes(text, saved):
- > tagger = Tagger()
- fugashi/tests/test_basic.py:51:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- __________________________________ test_pos[\u65e5\u672c\u8a9e-tags0] __________________________________
- text = '日本語', tags = ['名詞,固有名詞,地名,国', '名詞,普通名詞,一般,*']
- @pytest.mark.parametrize('text,tags', POS_TESTS)
- def test_pos(text, tags):
- # There should be a pos property when using the default tagger
- > tagger = Tagger()
- fugashi/tests/test_basic.py:67:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- ________________ test_accent[\u7a3b\u6751\u306b\u884c\u304d\u307e\u3057\u305f-accent0] _________________
- text = '稻村に行きました', accent = ['0,2', '*', '0', '*', '*']
- @pytest.mark.parametrize('text,accent', ACCENT_TESTS)
- def test_accent(text, accent):
- # This checks for correct handling of feature fields containing commas as reported in #13
- > tagger = Tagger()
- fugashi/tests/test_basic.py:74:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- _____________________________________________ test_clobber _____________________________________________
- def test_clobber():
- # Check that memory isn't clobbered by repeated parse calls
- > tagger = Tagger()
- fugashi/tests/test_basic.py:84:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
- E RuntimeError: Unknown dictionary format, use a GenericTagger.
- fugashi/fugashi.pyx:394: RuntimeError
- ======================================= short test summary info ========================================
- FAILED fugashi/tests/test_basic.py::test_wakati[\u3059\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u306e\u5185-\u3059\u3082\u3082 \u3082 \u3082\u3082 \u3082 \u3082\u3082 \u306e \u5185] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_wakati[\u65e5\u672c\u8a9e\u3067\u3059\u3088-\u65e5\u672c \u8a9e \u3067\u3059 \u3088] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_wakati[\u6df1\u6d77\u9b5a\u306f\u3001\u6df1\u6d77\u306b\u751f\u606f\u3059\u308b\u9b5a\u985e\u306e\u7dcf\u79f0\u3002-\u6df1\u6d77 \u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_tokens[\u3042\u306a\u305f\u306f\u65b0\u7c73\u306e\u9b54\u5973\u3002-saved0] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_tokens[\u30d1\u30fc\u30c8\u30ca\u30fc\u3067\u3042\u308b\u732b\u3068\u5171\u306b\u3001\u898b\u77e5\u3089\u306c\u753a\u3078\u3084\u3063\u3066\u304d\u305f\u3070\u304b\u308a\u3067\u3059\u3002-saved1] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_nbest[\u5916\u56fd\u4eba\u53c2\u653f\u6a29-\u5916\u56fd \u4eba\u53c2 \u653f\u6a29 \n\u5916\u56fd \u4eba \u53c2\u653f \u6a29] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_nbest[\u6df1\u6d77\u9b5a\u306f\u3001\u6df1\u6d77\u306b\u751f\u606f\u3059\u308b\u9b5a\u985e\u306e\u7dcf\u79f0\u3002-\u6df1\u6d77 \u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002 \n\u6df1 \u6d77\u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_nbest[\u6771\u4eac\u90fd\u306e\u5927\u4eba\u6c17\u306a\u3044\u4e3b\u6750\u6599-\u6771\u4eac \u90fd \u306e \u5927 \u4eba\u6c17 \u306a\u3044 \u4e3b\u6750 \u6599 \n\u6771\u4eac \u90fd \u306e \u5927 \u4eba\u6c17 \u306a\u3044 \u4e3b \u6750\u6599] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_nbest_nodes[\u5916\u56fd\u4eba\u53c2\u653f\u6a29-\u5916\u56fd \u4eba\u53c2 \u653f\u6a29 \n\u5916\u56fd \u4eba \u53c2\u653f \u6a29] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_nbest_nodes[\u6df1\u6d77\u9b5a\u306f\u3001\u6df1\u6d77\u306b\u751f\u606f\u3059\u308b\u9b5a\u985e\u306e\u7dcf\u79f0\u3002-\u6df1\u6d77 \u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002 \n\u6df1 \u6d77\u9b5a \u306f \u3001 \u6df1\u6d77 \u306b \u751f\u606f \u3059\u308b \u9b5a\u985e \u306e \u7dcf\u79f0 \u3002] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_nbest_nodes[\u6771\u4eac\u90fd\u306e\u5927\u4eba\u6c17\u306a\u3044\u4e3b\u6750\u6599-\u6771\u4eac \u90fd \u306e \u5927 \u4eba\u6c17 \u306a\u3044 \u4e3b\u6750 \u6599 \n\u6771\u4eac \u90fd \u306e \u5927 \u4eba\u6c17 \u306a\u3044 \u4e3b \u6750\u6599] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_pos[\u65e5\u672c\u8a9e-tags0] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_accent[\u7a3b\u6751\u306b\u884c\u304d\u307e\u3057\u305f-accent0] - RuntimeError: Unknown dictionary format, use a GenericTagger.
- FAILED fugashi/tests/test_basic.py::test_clobber - RuntimeError: Unknown dictionary format, use a GenericTagger.
- =============================== 14 failed, 4 passed, 1 skipped in 0.44s ================================
- ==> ERROR: A failure occurred in check().
- Aborting...
- -> error making: python-fugashi-exit status 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement