Advertisement
emceebois

clean build python-fugashi check errors

May 13th, 2024
24
0
328 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.94 KB | None | 0 0
  1. ==> Starting check()...
  2. ========================================= test session starts ==========================================
  3. platform linux -- Python 3.12.3, pytest-8.1.2, pluggy-1.4.0
  4. 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)
  5. rootdir: /home/user/.cache/yay/python-fugashi/src/fugashi
  6. 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
  7. collected 19 items
  8.  
  9. fugashi/tests/test_basic.py FFFFFFFFFFF.FFF [ 78%]
  10. fugashi/tests/test_ipadic.py ... [ 94%]
  11. fugashi/tests/test_nbest.py s [100%]
  12.  
  13. =============================================== FAILURES ===============================================
  14. _ test_wakati[\u3059\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u3082\u306e\u5185-\u3059\u3082\u3082 \u3082 \u3082\u3082 \u3082 \u3082\u3082 \u306e \u5185] _
  15.  
  16. text = 'すももももももももの内', wakati = 'すもも も もも も もも の 内'
  17.  
  18. @pytest.mark.parametrize('text,wakati', WAKATI_TESTS)
  19. def test_wakati(text, wakati):
  20. > tagger = Tagger('-Owakati')
  21.  
  22. fugashi/tests/test_basic.py:33:
  23. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  24.  
  25. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  26. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  27.  
  28. fugashi/fugashi.pyx:394: RuntimeError
  29. ______ test_wakati[\u65e5\u672c\u8a9e\u3067\u3059\u3088-\u65e5\u672c \u8a9e \u3067\u3059 \u3088] _______
  30.  
  31. text = '日本語ですよ', wakati = '日本 語 です よ'
  32.  
  33. @pytest.mark.parametrize('text,wakati', WAKATI_TESTS)
  34. def test_wakati(text, wakati):
  35. > tagger = Tagger('-Owakati')
  36.  
  37. fugashi/tests/test_basic.py:33:
  38. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  39.  
  40. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  41. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  42.  
  43. fugashi/fugashi.pyx:394: RuntimeError
  44. _ 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] _
  45.  
  46. text = '深海魚は、深海に生息する魚類の総称。', wakati = '深海 魚 は 、 深海 に 生息 する 魚類 の 総称 。'
  47.  
  48. @pytest.mark.parametrize('text,wakati', WAKATI_TESTS)
  49. def test_wakati(text, wakati):
  50. > tagger = Tagger('-Owakati')
  51.  
  52. fugashi/tests/test_basic.py:33:
  53. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  54.  
  55. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  56. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  57.  
  58. fugashi/fugashi.pyx:394: RuntimeError
  59. ___________ test_tokens[\u3042\u306a\u305f\u306f\u65b0\u7c73\u306e\u9b54\u5973\u3002-saved0] ___________
  60.  
  61. text = 'あなたは新米の魔女。', saved = ['あなた', 'は', '新米', 'の', '魔女', '。']
  62.  
  63. @pytest.mark.parametrize('text,saved', TOKENIZER_TESTS)
  64. def test_tokens(text, saved):
  65. # testing the token objects is tricky, so instead just check surfaces
  66. #TODO: maybe save serialized nodes to compare?
  67. > tagger = Tagger()
  68.  
  69. fugashi/tests/test_basic.py:40:
  70. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  71.  
  72. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  73. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  74.  
  75. fugashi/fugashi.pyx:394: RuntimeError
  76. _ 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] _
  77.  
  78. text = 'パートナーである猫と共に、見知らぬ町へやってきたばかりです。', saved = ['パートナー', 'で', 'ある', '猫', 'と', '共', ...]
  79.  
  80. @pytest.mark.parametrize('text,saved', TOKENIZER_TESTS)
  81. def test_tokens(text, saved):
  82. # testing the token objects is tricky, so instead just check surfaces
  83. #TODO: maybe save serialized nodes to compare?
  84. > tagger = Tagger()
  85.  
  86. fugashi/tests/test_basic.py:40:
  87. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  88.  
  89. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  90. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  91.  
  92. fugashi/fugashi.pyx:394: RuntimeError
  93. _ test_nbest[\u5916\u56fd\u4eba\u53c2\u653f\u6a29-\u5916\u56fd \u4eba\u53c2 \u653f\u6a29 \n\u5916\u56fd \u4eba \u53c2\u653f \u6a29] _
  94.  
  95. text = '外国人参政権', saved = '外国 人参 政権 \n外国 人 参政 権'
  96.  
  97. @pytest.mark.parametrize('text,saved', NBEST_TESTS)
  98. def test_nbest(text, saved):
  99. > tagger = Tagger('-Owakati')
  100.  
  101. fugashi/tests/test_basic.py:46:
  102. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  103.  
  104. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  105. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  106.  
  107. fugashi/fugashi.pyx:394: RuntimeError
  108. _ 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] _
  109.  
  110. text = '深海魚は、深海に生息する魚類の総称。', saved = '深海 魚 は 、 深海 に 生息 する 魚類 の 総称 。 \n深 海魚 は 、 深海 に 生息 する 魚類 の 総称 。'
  111.  
  112. @pytest.mark.parametrize('text,saved', NBEST_TESTS)
  113. def test_nbest(text, saved):
  114. > tagger = Tagger('-Owakati')
  115.  
  116. fugashi/tests/test_basic.py:46:
  117. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  118.  
  119. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  120. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  121.  
  122. fugashi/fugashi.pyx:394: RuntimeError
  123. _ 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] _
  124.  
  125. text = '東京都の大人気ない主材料', saved = '東京 都 の 大 人気 ない 主材 料 \n東京 都 の 大 人気 ない 主 材料'
  126.  
  127. @pytest.mark.parametrize('text,saved', NBEST_TESTS)
  128. def test_nbest(text, saved):
  129. > tagger = Tagger('-Owakati')
  130.  
  131. fugashi/tests/test_basic.py:46:
  132. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  133.  
  134. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  135. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  136.  
  137. fugashi/fugashi.pyx:394: RuntimeError
  138. _ test_nbest_nodes[\u5916\u56fd\u4eba\u53c2\u653f\u6a29-\u5916\u56fd \u4eba\u53c2 \u653f\u6a29 \n\u5916\u56fd \u4eba \u53c2\u653f \u6a29] _
  139.  
  140. text = '外国人参政権', saved = '外国 人参 政権 \n外国 人 参政 権'
  141.  
  142. @pytest.mark.parametrize('text,saved', NBEST_TESTS)
  143. def test_nbest_nodes(text, saved):
  144. > tagger = Tagger()
  145.  
  146. fugashi/tests/test_basic.py:51:
  147. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  148.  
  149. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  150. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  151.  
  152. fugashi/fugashi.pyx:394: RuntimeError
  153. _ 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] _
  154.  
  155. text = '深海魚は、深海に生息する魚類の総称。', saved = '深海 魚 は 、 深海 に 生息 する 魚類 の 総称 。 \n深 海魚 は 、 深海 に 生息 する 魚類 の 総称 。'
  156.  
  157. @pytest.mark.parametrize('text,saved', NBEST_TESTS)
  158. def test_nbest_nodes(text, saved):
  159. > tagger = Tagger()
  160.  
  161. fugashi/tests/test_basic.py:51:
  162. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  163.  
  164. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  165. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  166.  
  167. fugashi/fugashi.pyx:394: RuntimeError
  168. _ 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] _
  169.  
  170. text = '東京都の大人気ない主材料', saved = '東京 都 の 大 人気 ない 主材 料 \n東京 都 の 大 人気 ない 主 材料'
  171.  
  172. @pytest.mark.parametrize('text,saved', NBEST_TESTS)
  173. def test_nbest_nodes(text, saved):
  174. > tagger = Tagger()
  175.  
  176. fugashi/tests/test_basic.py:51:
  177. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  178.  
  179. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  180. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  181.  
  182. fugashi/fugashi.pyx:394: RuntimeError
  183. __________________________________ test_pos[\u65e5\u672c\u8a9e-tags0] __________________________________
  184.  
  185. text = '日本語', tags = ['名詞,固有名詞,地名,国', '名詞,普通名詞,一般,*']
  186.  
  187. @pytest.mark.parametrize('text,tags', POS_TESTS)
  188. def test_pos(text, tags):
  189. # There should be a pos property when using the default tagger
  190. > tagger = Tagger()
  191.  
  192. fugashi/tests/test_basic.py:67:
  193. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  194.  
  195. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  196. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  197.  
  198. fugashi/fugashi.pyx:394: RuntimeError
  199. ________________ test_accent[\u7a3b\u6751\u306b\u884c\u304d\u307e\u3057\u305f-accent0] _________________
  200.  
  201. text = '稻村に行きました', accent = ['0,2', '*', '0', '*', '*']
  202.  
  203. @pytest.mark.parametrize('text,accent', ACCENT_TESTS)
  204. def test_accent(text, accent):
  205. # This checks for correct handling of feature fields containing commas as reported in #13
  206. > tagger = Tagger()
  207.  
  208. fugashi/tests/test_basic.py:74:
  209. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  210.  
  211. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  212. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  213.  
  214. fugashi/fugashi.pyx:394: RuntimeError
  215. _____________________________________________ test_clobber _____________________________________________
  216.  
  217. def test_clobber():
  218. # Check that memory isn't clobbered by repeated parse calls
  219. > tagger = Tagger()
  220.  
  221. fugashi/tests/test_basic.py:84:
  222. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  223.  
  224. > raise RuntimeError("Unknown dictionary format, use a GenericTagger.")
  225. E RuntimeError: Unknown dictionary format, use a GenericTagger.
  226.  
  227. fugashi/fugashi.pyx:394: RuntimeError
  228. ======================================= short test summary info ========================================
  229. 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.
  230. 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.
  231. 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.
  232. 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.
  233. 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.
  234. 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.
  235. 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.
  236. 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.
  237. 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.
  238. 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.
  239. 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.
  240. FAILED fugashi/tests/test_basic.py::test_pos[\u65e5\u672c\u8a9e-tags0] - RuntimeError: Unknown dictionary format, use a GenericTagger.
  241. FAILED fugashi/tests/test_basic.py::test_accent[\u7a3b\u6751\u306b\u884c\u304d\u307e\u3057\u305f-accent0] - RuntimeError: Unknown dictionary format, use a GenericTagger.
  242. FAILED fugashi/tests/test_basic.py::test_clobber - RuntimeError: Unknown dictionary format, use a GenericTagger.
  243. =============================== 14 failed, 4 passed, 1 skipped in 0.44s ================================
  244. ==> ERROR: A failure occurred in check().
  245. Aborting...
  246. -> error making: python-fugashi-exit status 4
  247.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement