Skip to content

Instantly share code, notes, and snippets.

@shihono
Created November 19, 2023 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shihono/bc2a144c64d485439a0671b33fdeb220 to your computer and use it in GitHub Desktop.
Save shihono/bc2a144c64d485439a0671b33fdeb220 to your computer and use it in GitHub Desktop.
jdepp_make_install.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"toc_visible": true,
"authorship_tag": "ABX9TyM6dYcxkLg2l6ydnC4YgZie",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/shihono/bc2a144c64d485439a0671b33fdeb220/jdepp_make_install.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "markdown",
"source": [
"# J.DepP を colab で動かす\n",
"\n",
"https://www.tkl.iis.u-tokyo.ac.jp/~ynaga/jdepp/\n",
"\n",
"\n",
"インストールの設定としては大きく2通り\n",
"\n",
"- 分かち書き機能なし: mecabの結果を渡さないと実行できない\n",
"- 分かち書き機能あり: 内部でmecabも実行する\n",
"\n",
"\n",
"現時点で最新の `jdepp-2022-03-18` で動作確認\n",
"\n",
"学習データをいくつか選べるが、デフォルトの設定 (`--with-corpus=knbc`) を使う"
],
"metadata": {
"id": "tLZ-Gqz_eyYP"
}
},
{
"cell_type": "code",
"source": [
"!wget https://www.tkl.iis.u-tokyo.ac.jp/~ynaga/jdepp/jdepp-2022-03-18.tar.gz"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "0giS7E4Ie_Zs",
"outputId": "e6712032-a4f6-4514-9c34-ae98e8b5c0e8"
},
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"--2023-11-19 10:54:44-- https://www.tkl.iis.u-tokyo.ac.jp/~ynaga/jdepp/jdepp-2022-03-18.tar.gz\n",
"Resolving www.tkl.iis.u-tokyo.ac.jp (www.tkl.iis.u-tokyo.ac.jp)... 157.82.157.21\n",
"Connecting to www.tkl.iis.u-tokyo.ac.jp (www.tkl.iis.u-tokyo.ac.jp)|157.82.157.21|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 233956 (228K) [application/x-gzip]\n",
"Saving to: ‘jdepp-2022-03-18.tar.gz.2’\n",
"\n",
"jdepp-2022-03-18.ta 100%[===================>] 228.47K 633KB/s in 0.4s \n",
"\n",
"2023-11-19 10:54:45 (633 KB/s) - ‘jdepp-2022-03-18.tar.gz.2’ saved [233956/233956]\n",
"\n"
]
}
]
},
{
"cell_type": "markdown",
"source": [
"## 失敗例: Download & Setup 通りに実行する\n",
"\n",
"`configure` でmecab がないエラー。\n",
"\n",
"```\n",
"checking for mecab... no\n",
"checking for mecab-config... no\n",
"\n",
"configure: error: cannot find executable POS tagger: no\n",
" set --disable-autopos-train for testing a parser\n",
"```\n",
"\n",
"mecab をインストールしてから J.DepP をインストールするか、\n",
"なしでもインストール可能な設定を使うか、どちらかを選択する。"
],
"metadata": {
"id": "_XPmK5Vme5v7"
}
},
{
"cell_type": "code",
"source": [
"%%bash\n",
"tar zxvf jdepp-2022-03-18.tar.gz\n",
"cd ./jdepp-2022-03-18\n",
"./configure\n",
"make model\n",
"make install"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 1000
},
"id": "wLHJUnsMexkY",
"outputId": "87e09d1c-b6e5-4475-c5a8-da2d98189822"
},
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"jdepp-2022-03-18/\n",
"jdepp-2022-03-18/install-sh\n",
"jdepp-2022-03-18/configure.ac\n",
"jdepp-2022-03-18/tools/\n",
"jdepp-2022-03-18/LGPL\n",
"jdepp-2022-03-18/INSTALL\n",
"jdepp-2022-03-18/swig/\n",
"jdepp-2022-03-18/configure\n",
"jdepp-2022-03-18/ChangeLog\n",
"jdepp-2022-03-18/AUTHORS\n",
"jdepp-2022-03-18/config.h.in\n",
"jdepp-2022-03-18/BSD\n",
"jdepp-2022-03-18/depcomp\n",
"jdepp-2022-03-18/missing\n",
"jdepp-2022-03-18/README\n",
"jdepp-2022-03-18/Makefile.am\n",
"jdepp-2022-03-18/COPYING\n",
"jdepp-2022-03-18/compile\n",
"jdepp-2022-03-18/NEWS\n",
"jdepp-2022-03-18/GPL\n",
"jdepp-2022-03-18/THANKS\n",
"jdepp-2022-03-18/Makefile.in\n",
"jdepp-2022-03-18/aclocal.m4\n",
"jdepp-2022-03-18/src/\n",
"jdepp-2022-03-18/src/jdepp.cc\n",
"jdepp-2022-03-18/src/linear.h\n",
"jdepp-2022-03-18/src/pecco.h\n",
"jdepp-2022-03-18/src/Makefile.am\n",
"jdepp-2022-03-18/src/timer.h\n",
"jdepp-2022-03-18/src/pa.h\n",
"jdepp-2022-03-18/src/pdep.h\n",
"jdepp-2022-03-18/src/timer.cc\n",
"jdepp-2022-03-18/src/linear.cc\n",
"jdepp-2022-03-18/src/classify.cc\n",
"jdepp-2022-03-18/src/kernel.h\n",
"jdepp-2022-03-18/src/pdep.cc\n",
"jdepp-2022-03-18/src/cedar.h\n",
"jdepp-2022-03-18/src/classify.h\n",
"jdepp-2022-03-18/src/Makefile.in\n",
"jdepp-2022-03-18/src/typedef.h\n",
"jdepp-2022-03-18/src/kernel.cc\n",
"jdepp-2022-03-18/swig/jdepp.i\n",
"jdepp-2022-03-18/swig/python/\n",
"jdepp-2022-03-18/swig/Makefile\n",
"jdepp-2022-03-18/swig/perl/\n",
"jdepp-2022-03-18/swig/README\n",
"jdepp-2022-03-18/swig/lua/\n",
"jdepp-2022-03-18/swig/ruby/\n",
"jdepp-2022-03-18/swig/ruby/test.rb\n",
"jdepp-2022-03-18/swig/ruby/extconf.rb\n",
"jdepp-2022-03-18/swig/lua/Makefile\n",
"jdepp-2022-03-18/swig/lua/test.lua\n",
"jdepp-2022-03-18/swig/perl/test.pl\n",
"jdepp-2022-03-18/swig/perl/Makefile.PL\n",
"jdepp-2022-03-18/swig/python/test.py\n",
"jdepp-2022-03-18/swig/python/setup.py\n",
"jdepp-2022-03-18/tools/to_tree.py\n",
"jdepp-2022-03-18/tools/knbc2kyoto.py\n",
"jdepp-2022-03-18/tools/Makefile.am\n",
"jdepp-2022-03-18/tools/to_chunk.py\n",
"jdepp-2022-03-18/tools/eval.py\n",
"jdepp-2022-03-18/tools/replace_pos.py\n",
"jdepp-2022-03-18/tools/Makefile.in\n",
"jdepp-2022-03-18/tools/conll2kyoto.py\n",
"jdepp-2022-03-18/tools/to_sent.py\n",
"checking for a BSD-compatible install... /usr/bin/install -c\n",
"checking whether build environment is sane... yes\n",
"checking for a race-free mkdir -p... /usr/bin/mkdir -p\n",
"checking for gawk... no\n",
"checking for mawk... mawk\n",
"checking whether make sets $(MAKE)... yes\n",
"checking whether make supports nested variables... yes\n",
"checking for g++... g++\n",
"checking whether the C++ compiler works... yes\n",
"checking for C++ compiler default output file name... a.out\n",
"checking for suffix of executables... \n",
"checking whether we are cross compiling... no\n",
"checking for suffix of object files... o\n",
"checking whether the compiler supports GNU C++... yes\n",
"checking whether g++ accepts -g... yes\n",
"checking for g++ option to enable C++11 features... none needed\n",
"checking whether make supports the include directive... yes (GNU style)\n",
"checking dependency style of g++... gcc3\n",
"checking for gcc... gcc\n",
"checking whether the compiler supports GNU C... yes\n",
"checking whether gcc accepts -g... yes\n",
"checking for gcc option to enable C11 features... none needed\n",
"checking whether gcc understands -c and -o together... yes\n",
"checking dependency style of gcc... gcc3\n",
"checking for gawk... (cached) mawk\n",
"checking whether ln -s works... yes\n",
"checking for stdio.h... yes\n",
"checking for stdlib.h... yes\n",
"checking for string.h... yes\n",
"checking for inttypes.h... yes\n",
"checking for stdint.h... yes\n",
"checking for strings.h... yes\n",
"checking for sys/stat.h... yes\n",
"checking for sys/types.h... yes\n",
"checking for unistd.h... yes\n",
"checking for fcntl.h... yes\n",
"checking for stdint.h... (cached) yes\n",
"checking for sys/time.h... yes\n",
"checking for unistd.h... (cached) yes\n",
"checking for _Bool... no\n",
"checking for stdbool.h that conforms to C99... yes\n",
"checking for inline... inline\n",
"checking for int64_t... yes\n",
"checking for mode_t... yes\n",
"checking for size_t... yes\n",
"checking for ssize_t... yes\n",
"checking for uint16_t... yes\n",
"checking for uint64_t... yes\n",
"checking for uint8_t... yes\n",
"checking for working strtod... yes\n",
"checking for floor... yes\n",
"checking for gettimeofday... yes\n",
"checking for memchr... yes\n",
"checking for memmove... yes\n",
"checking for memset... yes\n",
"checking for pow... yes\n",
"checking for strstr... yes\n",
"checking for strtol... yes\n",
"checking for strtoul... yes\n",
"checking for curl... /usr/bin/curl\n",
"checking for wget... /usr/bin/wget\n",
"checking for iconv... /usr/bin/iconv\n",
"checking for python3... /usr/bin/python3\n",
"checking for mecab... /usr/local/bin/mecab\n",
"checking for mecab-config... /usr/local/bin/mecab-config\n",
"checking for unordered_map... yes\n",
"checking that generated files are newer than configure... done\n",
"configure: creating ./config.status\n",
"config.status: creating Makefile\n",
"config.status: creating src/Makefile\n",
"config.status: creating tools/Makefile\n",
"config.status: creating config.h\n",
"config.status: executing depfiles commands\n",
"make all-recursive\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18'\n",
"Making all in src\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/src'\n",
"g++ -DHAVE_CONFIG_H -I. -I.. -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-classify.o -MD -MP -MF .deps/jdepp-classify.Tpo -c -o jdepp-classify.o `test -f 'classify.cc' || echo './'`classify.cc\n",
"mv -f .deps/jdepp-classify.Tpo .deps/jdepp-classify.Po\n",
"g++ -DHAVE_CONFIG_H -I. -I.. -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-pdep.o -MD -MP -MF .deps/jdepp-pdep.Tpo -c -o jdepp-pdep.o `test -f 'pdep.cc' || echo './'`pdep.cc\n",
"mv -f .deps/jdepp-pdep.Tpo .deps/jdepp-pdep.Po\n",
"g++ -DHAVE_CONFIG_H -I. -I.. -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-jdepp.o -MD -MP -MF .deps/jdepp-jdepp.Tpo -c -o jdepp-jdepp.o `test -f 'jdepp.cc' || echo './'`jdepp.cc\n",
"mv -f .deps/jdepp-jdepp.Tpo .deps/jdepp-jdepp.Po\n",
"g++ -Wall -msse4.2 -m64 -g -O2 -o jdepp jdepp-classify.o jdepp-pdep.o jdepp-jdepp.o timer.o kernel.o \n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/src'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18'\n",
"Making install in src\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18/src'\n",
"g++ -Wall -msse4.2 -m64 -g -O2 -o jdepp jdepp-classify.o jdepp-pdep.o jdepp-jdepp.o timer.o kernel.o \n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18/src'\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"In file included from typedef.h:33,\n",
" from classify.h:20,\n",
" from classify.cc:4:\n",
"cedar.h: In constructor ‘cedar::da<value_type, NO_VALUE, NO_PATH, ORDERED, MAX_TRIAL, NUM_TRACKING_NODES>::da()’:\n",
"cedar.h:71:21: warning: typedef ‘value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index’ locally defined but not used [-Wunused-local-typedefs]\n",
" 71 | value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"cedar.h:16:44: note: in definition of macro ‘STATIC_ASSERT’\n",
" 16 | #define STATIC_ASSERT(e, msg) typedef char msg[(e) ? 1 : -1]\n",
" | ^~~\n",
"classify.cc: In member function ‘bool pecco::ClassifierBase<T>::_packingFeatures(std::vector<std::vector<unsigned int> >&)’:\n",
"classify.cc:127:11: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]\n",
" 127 | while (p != p_end && ! isspace (*p)) ++p; ++p;\n",
" | ^~~~~\n",
"classify.cc:127:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’\n",
" 127 | while (p != p_end && ! isspace (*p)) ++p; ++p;\n",
" | ^~\n",
"classify.cc: In member function ‘bool pecco::ClassifierBase<T>::_setFStrie()’:\n",
"classify.cc:226:11: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]\n",
" 226 | while (p != p_end && ! isspace (*p)) ++p; ++p; // skip label & space\n",
" | ^~~~~\n",
"classify.cc:226:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’\n",
" 226 | while (p != p_end && ! isspace (*p)) ++p; ++p; // skip label & space\n",
" | ^~\n",
"classify.cc: In member function ‘void pecco::ClassifierBase<T>::batch()’:\n",
"classify.cc:620:9: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]\n",
" 620 | while (p != p_end && ! isspace (*p)) ++p; *p = '\\0'; ++p;\n",
" | ^~~~~\n",
"classify.cc:620:51: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’\n",
" 620 | while (p != p_end && ! isspace (*p)) ++p; *p = '\\0'; ++p;\n",
" | ^\n",
"classify.cc: In member function ‘bool pecco::ClassifierBase<T>::_setFStrie() [with T = pecco::kernel_model]’:\n",
"classify.cc:204:20: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]\n",
" 204 | std::fread (&_fsw[0], sizeof (ny::fl_t), _nl * nfs, reader);\n",
" | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"classify.cc:370:20: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]\n",
" 370 | std::fread (&_fsw[0], sizeof (ny::fl_t), _nl * nfs, reader);\n",
" | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"In file included from typedef.h:33,\n",
" from pdep.h:31,\n",
" from pdep.cc:4:\n",
"cedar.h: In constructor ‘cedar::da<value_type, NO_VALUE, NO_PATH, ORDERED, MAX_TRIAL, NUM_TRACKING_NODES>::da()’:\n",
"cedar.h:71:21: warning: typedef ‘value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index’ locally defined but not used [-Wunused-local-typedefs]\n",
" 71 | value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"cedar.h:16:44: note: in definition of macro ‘STATIC_ASSERT’\n",
" 16 | #define STATIC_ASSERT(e, msg) typedef char msg[(e) ? 1 : -1]\n",
" | ^~~\n",
"In file included from pdep.cc:4:\n",
"pdep.h: In constructor ‘pdep::dict_base_t::dict_base_t(const char*)’:\n",
"pdep.h:461:18: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]\n",
" 461 | std::fread (_data_ptr, sizeof (char), size, fp);\n",
" | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"In file included from pdep.h:49,\n",
" from pdep.cc:4:\n",
"pa.h: In member function ‘bool opal::Model::load(const char*)’:\n",
"pa.h:1486:20: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]\n",
" 1486 | std::fread (&_w[0], sizeof (fl_t), _nf + 1, reader);\n",
" | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"pa.h:1487:20: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]\n",
" 1487 | std::fread (&_sigmoid_A, sizeof (double), 1, reader);\n",
" | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"pa.h:1488:20: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]\n",
" 1488 | std::fread (&_sigmoid_B, sizeof (double), 1, reader);\n",
" | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"In file included from typedef.h:33,\n",
" from pdep.h:31,\n",
" from jdepp.cc:4:\n",
"cedar.h: In constructor ‘cedar::da<value_type, NO_VALUE, NO_PATH, ORDERED, MAX_TRIAL, NUM_TRACKING_NODES>::da()’:\n",
"cedar.h:71:21: warning: typedef ‘value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index’ locally defined but not used [-Wunused-local-typedefs]\n",
" 71 | value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n",
"cedar.h:16:44: note: in definition of macro ‘STATIC_ASSERT’\n",
" 16 | #define STATIC_ASSERT(e, msg) typedef char msg[(e) ? 1 : -1]\n",
" | ^~~\n",
"/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23\n",
"kernel.o: in function `void pecco::kernel_model::_splitClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x46): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xa0): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x46): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb3): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x4e): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb1): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x48): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb9): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"collect2: error: ld returned 1 exit status\n",
"make[2]: *** [Makefile:401: jdepp] Error 1\n",
"make[1]: *** [Makefile:389: all-recursive] Error 1\n",
"make: *** [Makefile:330: all] Error 2\n",
"/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23\n",
"kernel.o: in function `void pecco::kernel_model::_splitClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x46): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xa0): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x46): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb3): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x4e): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb1): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x48): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb9): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"collect2: error: ld returned 1 exit status\n",
"make[1]: *** [Makefile:401: jdepp] Error 1\n",
"make: *** [Makefile:389: install-recursive] Error 1\n"
]
},
{
"output_type": "error",
"ename": "CalledProcessError",
"evalue": "ignored",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mCalledProcessError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-2-8356727748ce>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_cell_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'bash'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m''\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'tar zxvf jdepp-2022-03-18.tar.gz\\ncd ./jdepp-2022-03-18\\n./configure\\nmake model\\nmake install\\n'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/google/colab/_shell.py\u001b[0m in \u001b[0;36mrun_cell_magic\u001b[0;34m(self, magic_name, line, cell)\u001b[0m\n\u001b[1;32m 332\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mline\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 333\u001b[0m \u001b[0mcell\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m' '\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 334\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_cell_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmagic_name\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mline\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 335\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 336\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\u001b[0m in \u001b[0;36mrun_cell_magic\u001b[0;34m(self, magic_name, line, cell)\u001b[0m\n\u001b[1;32m 2471\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbuiltin_trap\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2472\u001b[0m \u001b[0margs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mmagic_arg_s\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2473\u001b[0;31m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfn\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2474\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mresult\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2475\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/IPython/core/magics/script.py\u001b[0m in \u001b[0;36mnamed_script_magic\u001b[0;34m(line, cell)\u001b[0m\n\u001b[1;32m 140\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 141\u001b[0m \u001b[0mline\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscript\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 142\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshebang\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mline\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 143\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 144\u001b[0m \u001b[0;31m# write a basic docstring:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m<decorator-gen-103>\u001b[0m in \u001b[0;36mshebang\u001b[0;34m(self, line, cell)\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/IPython/core/magic.py\u001b[0m in \u001b[0;36m<lambda>\u001b[0;34m(f, *a, **k)\u001b[0m\n\u001b[1;32m 185\u001b[0m \u001b[0;31m# but it's overkill for just that one bit of state.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 186\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mmagic_deco\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 187\u001b[0;31m \u001b[0mcall\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mlambda\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 188\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 189\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mcallable\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/IPython/core/magics/script.py\u001b[0m in \u001b[0;36mshebang\u001b[0;34m(self, line, cell)\u001b[0m\n\u001b[1;32m 243\u001b[0m \u001b[0msys\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstderr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mflush\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 244\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0margs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mraise_error\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturncode\u001b[0m\u001b[0;34m!=\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 245\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mCalledProcessError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturncode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mout\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstderr\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0merr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 246\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 247\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_run_script\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mto_close\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mCalledProcessError\u001b[0m: Command 'b'tar zxvf jdepp-2022-03-18.tar.gz\\ncd ./jdepp-2022-03-18\\n./configure\\nmake model\\nmake install\\n'' returned non-zero exit status 2."
]
}
]
},
{
"cell_type": "markdown",
"source": [
"## 「分かち書き機能なし」のインストール\n",
"\n",
"別途 mecab を実行してパイプで繋ぐ必要がある"
],
"metadata": {
"id": "VNmejXFrhQDJ"
}
},
{
"cell_type": "markdown",
"source": [
"\n",
"### 失敗例\n",
"\n",
"`-disable-autopos-train` を追加\n",
"\n",
"`make` でエラーになる\n",
"\n",
"\n",
"上記で ` undefined reference to ~~` とあり、参照関係のエラー。"
],
"metadata": {
"id": "8KYC3j7eflGg"
}
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
"height": 1000
},
"id": "svUs3mVmet_-",
"outputId": "003d93ed-6adc-48d6-e51f-5dc46a3e42f9"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"checking for a BSD-compatible install... /usr/bin/install -c\n",
"checking whether build environment is sane... yes\n",
"checking for a race-free mkdir -p... /usr/bin/mkdir -p\n",
"checking for gawk... no\n",
"checking for mawk... mawk\n",
"checking whether make sets $(MAKE)... yes\n",
"checking whether make supports nested variables... yes\n",
"checking for g++... g++\n",
"checking whether the C++ compiler works... yes\n",
"checking for C++ compiler default output file name... a.out\n",
"checking for suffix of executables... \n",
"checking whether we are cross compiling... no\n",
"checking for suffix of object files... o\n",
"checking whether the compiler supports GNU C++... yes\n",
"checking whether g++ accepts -g... yes\n",
"checking for g++ option to enable C++11 features... none needed\n",
"checking whether make supports the include directive... yes (GNU style)\n",
"checking dependency style of g++... gcc3\n",
"checking for gcc... gcc\n",
"checking whether the compiler supports GNU C... yes\n",
"checking whether gcc accepts -g... yes\n",
"checking for gcc option to enable C11 features... none needed\n",
"checking whether gcc understands -c and -o together... yes\n",
"checking dependency style of gcc... gcc3\n",
"checking for gawk... (cached) mawk\n",
"checking whether ln -s works... yes\n",
"checking for stdio.h... yes\n",
"checking for stdlib.h... yes\n",
"checking for string.h... yes\n",
"checking for inttypes.h... yes\n",
"checking for stdint.h... yes\n",
"checking for strings.h... yes\n",
"checking for sys/stat.h... yes\n",
"checking for sys/types.h... yes\n",
"checking for unistd.h... yes\n",
"checking for fcntl.h... yes\n",
"checking for stdint.h... (cached) yes\n",
"checking for sys/time.h... yes\n",
"checking for unistd.h... (cached) yes\n",
"checking for _Bool... no\n",
"checking for stdbool.h that conforms to C99... yes\n",
"checking for inline... inline\n",
"checking for int64_t... yes\n",
"checking for mode_t... yes\n",
"checking for size_t... yes\n",
"checking for ssize_t... yes\n",
"checking for uint16_t... yes\n",
"checking for uint64_t... yes\n",
"checking for uint8_t... yes\n",
"checking for working strtod... yes\n",
"checking for floor... yes\n",
"checking for gettimeofday... yes\n",
"checking for memchr... yes\n",
"checking for memmove... yes\n",
"checking for memset... yes\n",
"checking for pow... yes\n",
"checking for strstr... yes\n",
"checking for strtol... yes\n",
"checking for strtoul... yes\n",
"checking for curl... /usr/bin/curl\n",
"checking for wget... /usr/bin/wget\n",
"checking for iconv... /usr/bin/iconv\n",
"checking for python3... /usr/bin/python3\n",
"checking for mecab... /usr/local/bin/mecab\n",
"checking for mecab-config... /usr/local/bin/mecab-config\n",
"checking for unordered_map... yes\n",
"checking that generated files are newer than configure... done\n",
"configure: creating ./config.status\n",
"config.status: creating Makefile\n",
"config.status: creating src/Makefile\n",
"config.status: creating tools/Makefile\n",
"config.status: creating config.h\n",
"config.status: config.h is unchanged\n",
"config.status: executing depfiles commands\n",
"make all-recursive\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18'\n",
"Making all in src\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/src'\n",
"g++ -Wall -msse4.2 -m64 -g -O2 -o jdepp jdepp-classify.o jdepp-pdep.o jdepp-jdepp.o timer.o kernel.o \n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/src'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18'\n",
"Making install in src\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18/src'\n",
"g++ -Wall -msse4.2 -m64 -g -O2 -o jdepp jdepp-classify.o jdepp-pdep.o jdepp-jdepp.o timer.o kernel.o \n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18/src'\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23\n",
"kernel.o: in function `void pecco::kernel_model::_splitClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x46): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xa0): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x46): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb3): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x4e): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb1): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x48): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb9): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"collect2: error: ld returned 1 exit status\n",
"make[2]: *** [Makefile:401: jdepp] Error 1\n",
"make[1]: *** [Makefile:389: all-recursive] Error 1\n",
"make: *** [Makefile:330: all] Error 2\n",
"/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23\n",
"kernel.o: in function `void pecco::kernel_model::_splitClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x46): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xa0): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x46): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE1EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb3): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)1>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x4e): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb0ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb1): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<false, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.o: in function `void pecco::kernel_model::_splitClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)':\n",
"kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0x48): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"/usr/bin/ld: kernel.cc:(.text._ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_[_ZN5pecco12kernel_model14_splitClassifyILb1ELNS_8binary_tE0EEEvPdN9__gnu_cxx17__normal_iteratorIPKjSt6vectorIjSaIjEEEERKSB_SD_]+0xb9): undefined reference to `bool pecco::ClassifierBase<pecco::kernel_model>::_pkeClassify<true, (pecco::binary_t)0>(double*, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > >, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&, __gnu_cxx::__normal_iterator<unsigned int const*, std::vector<unsigned int, std::allocator<unsigned int> > > const&)'\n",
"collect2: error: ld returned 1 exit status\n",
"make[1]: *** [Makefile:401: jdepp] Error 1\n",
"make: *** [Makefile:389: install-recursive] Error 1\n"
]
},
{
"output_type": "error",
"ename": "CalledProcessError",
"evalue": "ignored",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mCalledProcessError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-3-478deea3f8de>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_cell_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'bash'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m''\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'# tar zxvf jdepp-2022-03-18.tar.gz\\ncd ./jdepp-2022-03-18\\n./configure -disable-autopos-train\\nmake model\\nmake install\\n'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/google/colab/_shell.py\u001b[0m in \u001b[0;36mrun_cell_magic\u001b[0;34m(self, magic_name, line, cell)\u001b[0m\n\u001b[1;32m 332\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mline\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 333\u001b[0m \u001b[0mcell\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m' '\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 334\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0msuper\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_cell_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmagic_name\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mline\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 335\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 336\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/IPython/core/interactiveshell.py\u001b[0m in \u001b[0;36mrun_cell_magic\u001b[0;34m(self, magic_name, line, cell)\u001b[0m\n\u001b[1;32m 2471\u001b[0m \u001b[0;32mwith\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mbuiltin_trap\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2472\u001b[0m \u001b[0margs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mmagic_arg_s\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 2473\u001b[0;31m \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfn\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2474\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mresult\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2475\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/IPython/core/magics/script.py\u001b[0m in \u001b[0;36mnamed_script_magic\u001b[0;34m(line, cell)\u001b[0m\n\u001b[1;32m 140\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 141\u001b[0m \u001b[0mline\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mscript\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 142\u001b[0;31m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshebang\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mline\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 143\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 144\u001b[0m \u001b[0;31m# write a basic docstring:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m<decorator-gen-103>\u001b[0m in \u001b[0;36mshebang\u001b[0;34m(self, line, cell)\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/IPython/core/magic.py\u001b[0m in \u001b[0;36m<lambda>\u001b[0;34m(f, *a, **k)\u001b[0m\n\u001b[1;32m 185\u001b[0m \u001b[0;31m# but it's overkill for just that one bit of state.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 186\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0mmagic_deco\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 187\u001b[0;31m \u001b[0mcall\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mlambda\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mf\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0ma\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mk\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 188\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 189\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mcallable\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0marg\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/IPython/core/magics/script.py\u001b[0m in \u001b[0;36mshebang\u001b[0;34m(self, line, cell)\u001b[0m\n\u001b[1;32m 243\u001b[0m \u001b[0msys\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstderr\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mflush\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 244\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0margs\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mraise_error\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturncode\u001b[0m\u001b[0;34m!=\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 245\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mCalledProcessError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreturncode\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mout\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mstderr\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0merr\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 246\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 247\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_run_script\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mp\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcell\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mto_close\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mCalledProcessError\u001b[0m: Command 'b'# tar zxvf jdepp-2022-03-18.tar.gz\\ncd ./jdepp-2022-03-18\\n./configure -disable-autopos-train\\nmake model\\nmake install\\n'' returned non-zero exit status 2."
]
}
],
"source": [
"%%bash\n",
"# tar zxvf jdepp-2022-03-18.tar.gz\n",
"cd ./jdepp-2022-03-18\n",
"./configure -disable-autopos-train\n",
"make model\n",
"make install"
]
},
{
"cell_type": "markdown",
"source": [
"### 成功: clang を指定する\n",
"\n",
"google colabではデフォルトで gcc を指定している。\n",
"コンパイラーをclangに変える。\n",
"\n",
"実行可能になる。"
],
"metadata": {
"id": "2pFHe4-ogQG-"
}
},
{
"cell_type": "code",
"source": [
"!which clang"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "heGg4OWdgbi5",
"outputId": "15e52c52-9bca-488a-ef17-6e6ab1dc0d19"
},
"execution_count": 4,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"/usr/bin/clang\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!rm -r /content/jdepp-2022-03-18"
],
"metadata": {
"id": "Uttu2I_zgjYr"
},
"execution_count": 5,
"outputs": []
},
{
"cell_type": "code",
"source": [
"%%bash\n",
"# wget https://www.tkl.iis.u-tokyo.ac.jp/~ynaga/jdepp/jdepp-2022-03-18.tar.gz\n",
"tar zxvf jdepp-2022-03-18.tar.gz\n",
"cd ./jdepp-2022-03-18\n",
"./configure -disable-autopos-train CXX=/usr/bin/clang++\n",
"make model\n",
"make install"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "Uw3_FaYzggoZ",
"outputId": "701bd735-2f84-4512-90fd-058b580b043c"
},
"execution_count": 6,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"jdepp-2022-03-18/\n",
"jdepp-2022-03-18/install-sh\n",
"jdepp-2022-03-18/configure.ac\n",
"jdepp-2022-03-18/tools/\n",
"jdepp-2022-03-18/LGPL\n",
"jdepp-2022-03-18/INSTALL\n",
"jdepp-2022-03-18/swig/\n",
"jdepp-2022-03-18/configure\n",
"jdepp-2022-03-18/ChangeLog\n",
"jdepp-2022-03-18/AUTHORS\n",
"jdepp-2022-03-18/config.h.in\n",
"jdepp-2022-03-18/BSD\n",
"jdepp-2022-03-18/depcomp\n",
"jdepp-2022-03-18/missing\n",
"jdepp-2022-03-18/README\n",
"jdepp-2022-03-18/Makefile.am\n",
"jdepp-2022-03-18/COPYING\n",
"jdepp-2022-03-18/compile\n",
"jdepp-2022-03-18/NEWS\n",
"jdepp-2022-03-18/GPL\n",
"jdepp-2022-03-18/THANKS\n",
"jdepp-2022-03-18/Makefile.in\n",
"jdepp-2022-03-18/aclocal.m4\n",
"jdepp-2022-03-18/src/\n",
"jdepp-2022-03-18/src/jdepp.cc\n",
"jdepp-2022-03-18/src/linear.h\n",
"jdepp-2022-03-18/src/pecco.h\n",
"jdepp-2022-03-18/src/Makefile.am\n",
"jdepp-2022-03-18/src/timer.h\n",
"jdepp-2022-03-18/src/pa.h\n",
"jdepp-2022-03-18/src/pdep.h\n",
"jdepp-2022-03-18/src/timer.cc\n",
"jdepp-2022-03-18/src/linear.cc\n",
"jdepp-2022-03-18/src/classify.cc\n",
"jdepp-2022-03-18/src/kernel.h\n",
"jdepp-2022-03-18/src/pdep.cc\n",
"jdepp-2022-03-18/src/cedar.h\n",
"jdepp-2022-03-18/src/classify.h\n",
"jdepp-2022-03-18/src/Makefile.in\n",
"jdepp-2022-03-18/src/typedef.h\n",
"jdepp-2022-03-18/src/kernel.cc\n",
"jdepp-2022-03-18/swig/jdepp.i\n",
"jdepp-2022-03-18/swig/python/\n",
"jdepp-2022-03-18/swig/Makefile\n",
"jdepp-2022-03-18/swig/perl/\n",
"jdepp-2022-03-18/swig/README\n",
"jdepp-2022-03-18/swig/lua/\n",
"jdepp-2022-03-18/swig/ruby/\n",
"jdepp-2022-03-18/swig/ruby/test.rb\n",
"jdepp-2022-03-18/swig/ruby/extconf.rb\n",
"jdepp-2022-03-18/swig/lua/Makefile\n",
"jdepp-2022-03-18/swig/lua/test.lua\n",
"jdepp-2022-03-18/swig/perl/test.pl\n",
"jdepp-2022-03-18/swig/perl/Makefile.PL\n",
"jdepp-2022-03-18/swig/python/test.py\n",
"jdepp-2022-03-18/swig/python/setup.py\n",
"jdepp-2022-03-18/tools/to_tree.py\n",
"jdepp-2022-03-18/tools/knbc2kyoto.py\n",
"jdepp-2022-03-18/tools/Makefile.am\n",
"jdepp-2022-03-18/tools/to_chunk.py\n",
"jdepp-2022-03-18/tools/eval.py\n",
"jdepp-2022-03-18/tools/replace_pos.py\n",
"jdepp-2022-03-18/tools/Makefile.in\n",
"jdepp-2022-03-18/tools/conll2kyoto.py\n",
"jdepp-2022-03-18/tools/to_sent.py\n",
"checking for a BSD-compatible install... /usr/bin/install -c\n",
"checking whether build environment is sane... yes\n",
"checking for a race-free mkdir -p... /usr/bin/mkdir -p\n",
"checking for gawk... no\n",
"checking for mawk... mawk\n",
"checking whether make sets $(MAKE)... yes\n",
"checking whether make supports nested variables... yes\n",
"checking whether the C++ compiler works... yes\n",
"checking for C++ compiler default output file name... a.out\n",
"checking for suffix of executables... \n",
"checking whether we are cross compiling... no\n",
"checking for suffix of object files... o\n",
"checking whether the compiler supports GNU C++... yes\n",
"checking whether /usr/bin/clang++ accepts -g... yes\n",
"checking for /usr/bin/clang++ option to enable C++11 features... none needed\n",
"checking whether make supports the include directive... yes (GNU style)\n",
"checking dependency style of /usr/bin/clang++... gcc3\n",
"checking for gcc... gcc\n",
"checking whether the compiler supports GNU C... yes\n",
"checking whether gcc accepts -g... yes\n",
"checking for gcc option to enable C11 features... none needed\n",
"checking whether gcc understands -c and -o together... yes\n",
"checking dependency style of gcc... gcc3\n",
"checking for gawk... (cached) mawk\n",
"checking whether ln -s works... yes\n",
"checking for stdio.h... yes\n",
"checking for stdlib.h... yes\n",
"checking for string.h... yes\n",
"checking for inttypes.h... yes\n",
"checking for stdint.h... yes\n",
"checking for strings.h... yes\n",
"checking for sys/stat.h... yes\n",
"checking for sys/types.h... yes\n",
"checking for unistd.h... yes\n",
"checking for fcntl.h... yes\n",
"checking for stdint.h... (cached) yes\n",
"checking for sys/time.h... yes\n",
"checking for unistd.h... (cached) yes\n",
"checking for _Bool... no\n",
"checking for stdbool.h that conforms to C99... yes\n",
"checking for inline... inline\n",
"checking for int64_t... yes\n",
"checking for mode_t... yes\n",
"checking for size_t... yes\n",
"checking for ssize_t... yes\n",
"checking for uint16_t... yes\n",
"checking for uint64_t... yes\n",
"checking for uint8_t... yes\n",
"checking for working strtod... yes\n",
"checking for floor... yes\n",
"checking for gettimeofday... yes\n",
"checking for memchr... yes\n",
"checking for memmove... yes\n",
"checking for memset... yes\n",
"checking for pow... yes\n",
"checking for strstr... yes\n",
"checking for strtol... yes\n",
"checking for strtoul... yes\n",
"checking for curl... /usr/bin/curl\n",
"checking for wget... /usr/bin/wget\n",
"checking for iconv... /usr/bin/iconv\n",
"checking for python3... /usr/bin/python3\n",
"checking for mecab... /usr/local/bin/mecab\n",
"checking for mecab-config... /usr/local/bin/mecab-config\n",
"checking for unordered_map... yes\n",
"checking that generated files are newer than configure... done\n",
"configure: creating ./config.status\n",
"config.status: creating Makefile\n",
"config.status: creating src/Makefile\n",
"config.status: creating tools/Makefile\n",
"config.status: creating config.h\n",
"config.status: executing depfiles commands\n",
"make all-recursive\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18'\n",
"Making all in src\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/src'\n",
"/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-classify.o -MD -MP -MF .deps/jdepp-classify.Tpo -c -o jdepp-classify.o `test -f 'classify.cc' || echo './'`classify.cc\n",
"mv -f .deps/jdepp-classify.Tpo .deps/jdepp-classify.Po\n",
"/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-pdep.o -MD -MP -MF .deps/jdepp-pdep.Tpo -c -o jdepp-pdep.o `test -f 'pdep.cc' || echo './'`pdep.cc\n",
"mv -f .deps/jdepp-pdep.Tpo .deps/jdepp-pdep.Po\n",
"/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-jdepp.o -MD -MP -MF .deps/jdepp-jdepp.Tpo -c -o jdepp-jdepp.o `test -f 'jdepp.cc' || echo './'`jdepp.cc\n",
"mv -f .deps/jdepp-jdepp.Tpo .deps/jdepp-jdepp.Po\n",
"/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -Wall -msse4.2 -m64 -g -O2 -MT timer.o -MD -MP -MF .deps/timer.Tpo -c -o timer.o timer.cc\n",
"mv -f .deps/timer.Tpo .deps/timer.Po\n",
"/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -Wall -msse4.2 -m64 -g -O2 -MT kernel.o -MD -MP -MF .deps/kernel.Tpo -c -o kernel.o kernel.cc\n",
"mv -f .deps/kernel.Tpo .deps/kernel.Po\n",
"/usr/bin/clang++ -Wall -msse4.2 -m64 -g -O2 -o jdepp jdepp-classify.o jdepp-pdep.o jdepp-jdepp.o timer.o kernel.o \n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/src'\n",
"Making all in tools\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/tools'\n",
"make[2]: Nothing to be done for 'all'.\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/tools'\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18'\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18'\n",
"Kyoto-University and NTT Blog (KNB) Corpus not found: /content/jdepp-2022-03-18/KNBC_v1.0_090925\n",
"Downloading KNB Corpus..\n",
"done.\n",
"Extracting tarball..\n",
"done.\n",
"/usr/bin/mkdir -p model/knbc\n",
"rm -f model/knbc/*\n",
"find /content/jdepp-2022-03-18/KNBC_v1.0_090925/corpus1 -type f -name \"KN*\" | LC_ALL=C sort | xargs cat | /usr/bin/python3 /content/jdepp-2022-03-18/tools/knbc2kyoto.py > model/knbc/train.JDP.euc\n",
"Converting corpus into JDP format..\n",
"translate corpus into UTF-8..\n",
"/usr/bin/iconv -f EUC-JP -t UTF-8 model/knbc/train.JDP.euc > model/knbc/train.JDP.utf8\n",
"done.\n",
"Training BUNSETSU CHUNKER..\n",
"src/jdepp -t 0 -I 1 -c model/knbc/train.JDP.utf8 -m model/knbc -- -t 1 -d 2 -c 0.0008 -i 40 -p\n",
"echo '' | src/jdepp -t 1 -I 1 -c model/knbc/train.JDP.utf8 -m model/knbc -- -t 1 -d 2 -c 0.0008 -i 40 -p -- -s 0.02 -i 5\n",
"done.\n",
"Training and testing DEPENDENCY PARSER..\n",
"src/jdepp -t 0 -I 2 -c model/knbc/train.JDP.utf8 -m model/knbc -- -t 1 -d 2 -c 0.00005 -i 40 -p\n",
"echo '' | src/jdepp -t 1 -I 2 -c model/knbc/train.JDP.utf8 -m model/knbc -- -t 1 -d 2 -c 0.00005 -i 40 -p -- -- -s 0.005 -i 5\n",
"done.\n",
"Generating feature strings in EUC-JP\n",
"done.\n",
"Making install in src\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18/src'\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/src'\n",
" /usr/bin/mkdir -p '/usr/local/bin'\n",
" /usr/bin/install -c jdepp '/usr/local/bin'\n",
"make[2]: Nothing to be done for 'install-data-am'.\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/src'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18/src'\n",
"Making install in tools\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18/tools'\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/tools'\n",
" /usr/bin/mkdir -p '/usr/local/bin'\n",
" /usr/bin/install -c to_tree.py to_chunk.py '/usr/local/bin'\n",
"make[2]: Nothing to be done for 'install-data-am'.\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/tools'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18/tools'\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18'\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18'\n",
"make[2]: Nothing to be done for 'install-exec-am'.\n",
"make install-data-hook\n",
"make[3]: Entering directory '/content/jdepp-2022-03-18'\n",
"Installing knbc model..\n",
"if test -e model/knbc/dic.euc; then \\\n",
"\t/usr/bin/install -c -d /usr/local/lib/jdepp/model/knbc; \\\n",
"\t/usr/bin/install -c -p model/knbc/* /usr/local/lib/jdepp/model/knbc; \\\n",
"echo 'done.'; \\\n",
"fi\n",
"done.\n",
"make[3]: Leaving directory '/content/jdepp-2022-03-18'\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18'\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"In file included from classify.cc:4:\n",
"In file included from ./classify.h:20:\n",
"In file included from ./typedef.h:33:\n",
"./cedar.h:71:21: warning: unused typedef 'value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index' [-Wunused-local-typedef]\n",
" value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" ^\n",
"1 warning generated.\n",
"pdep.cc:674:67: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]\n",
" case '#': if (output) _s->setHeader (line, read); break;\n",
" ^\n",
"pdep.cc:672:13: note: previous statement is here\n",
" else\n",
" ^\n",
"In file included from pdep.cc:4:\n",
"In file included from ./pdep.h:31:\n",
"In file included from ./typedef.h:33:\n",
"./cedar.h:71:21: warning: unused typedef 'value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index' [-Wunused-local-typedef]\n",
" value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" ^\n",
"2 warnings generated.\n",
"In file included from jdepp.cc:4:\n",
"In file included from ./pdep.h:31:\n",
"In file included from ./typedef.h:33:\n",
"./cedar.h:71:21: warning: unused typedef 'value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index' [-Wunused-local-typedef]\n",
" value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" ^\n",
"1 warning generated.\n",
"timer.cc:10:7: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]\n",
" register uint64_t start, end;\n",
" ^~~~~~~~~\n",
"timer.cc:10:7: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]\n",
" register uint64_t start, end;\n",
" ^~~~~~~~~\n",
"timer.cc:12:7: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register]\n",
" register int min_interval = 5000;\n",
" ^~~~~~~~~\n",
"3 warnings generated.\n",
"In file included from kernel.cc:4:\n",
"In file included from ./kernel.h:16:\n",
"In file included from ./typedef.h:33:\n",
"./cedar.h:71:21: warning: unused typedef 'value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index' [-Wunused-local-typedef]\n",
" value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" ^\n",
"1 warning generated.\n",
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
" Dload Upload Total Spent Left Speed\n",
"\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 270 100 270 0 0 846 0 --:--:-- --:--:-- --:--:-- 849\n",
"\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r 6 4315k 6 287k 0 0 181k 0 0:00:23 0:00:01 0:00:22 291k\r 27 4315k 27 1183k 0 0 460k 0 0:00:09 0:00:02 0:00:07 600k\r 76 4315k 76 3279k 0 0 897k 0 0:00:04 0:00:03 0:00:01 1073k\r100 4315k 100 4315k 0 0 1066k 0 0:00:04 0:00:04 --:--:-- 1251k\n",
"fail to convert: # S-ID:KN257_Gourmet_1-1-5-01 KNP:2008/02/25 SCORE:-42.35019 MOD:2008/11/18\n",
"\rlearn: 1000 sent. processed\rlearn: 2000 sent. processed\rlearn: 3000 sent. processed\rlearn: 4000 sent. processed\rlearn: 4185 sent. processed.\n",
"\rPA1 iter=1 #ex=62752 #SV=6412; \rPA1 iter=2 #ex=125504 #SV=6842; \rPA1 iter=3 #ex=188256 #SV=7063; \rPA1 iter=4 #ex=251008 #SV=7231; \rPA1 iter=5 #ex=313760 #SV=7364; \rPA1 iter=6 #ex=376512 #SV=7493; \rPA1 iter=7 #ex=439264 #SV=7588; \rPA1 iter=8 #ex=502016 #SV=7687; \rPA1 iter=9 #ex=564768 #SV=7771; \rPA1 iter=10 #ex=627520 #SV=7861; \rPA1 iter=11 #ex=690272 #SV=7931; \rPA1 iter=12 #ex=753024 #SV=8015; \rPA1 iter=13 #ex=815776 #SV=8083; \rPA1 iter=14 #ex=878528 #SV=8154; \rPA1 iter=15 #ex=941280 #SV=8217; \rPA1 iter=16 #ex=1004032 #SV=8277; \rPA1 iter=17 #ex=1066784 #SV=8330; \rPA1 iter=18 #ex=1129536 #SV=8374; \rPA1 iter=19 #ex=1192288 #SV=8410; \rPA1 iter=20 #ex=1255040 #SV=8451; \rPA1 iter=21 #ex=1317792 #SV=8508; \rPA1 iter=22 #ex=1380544 #SV=8553; \rPA1 iter=23 #ex=1443296 #SV=8591; \rPA1 iter=24 #ex=1506048 #SV=8634; \rPA1 iter=25 #ex=1568800 #SV=8669; \rPA1 iter=26 #ex=1631552 #SV=8693; \rPA1 iter=27 #ex=1694304 #SV=8727; \rPA1 iter=28 #ex=1757056 #SV=8755; \rPA1 iter=29 #ex=1819808 #SV=8776; \rPA1 iter=30 #ex=1882560 #SV=8802; \rPA1 iter=31 #ex=1945312 #SV=8823; \rPA1 iter=32 #ex=2008064 #SV=8849; \rPA1 iter=33 #ex=2070816 #SV=8869; \rPA1 iter=34 #ex=2133568 #SV=8885; \rPA1 iter=35 #ex=2196320 #SV=8909; \rPA1 iter=36 #ex=2259072 #SV=8922; \rPA1 iter=37 #ex=2321824 #SV=8943; \rPA1 iter=38 #ex=2384576 #SV=8962; \rPA1 iter=39 #ex=2447328 #SV=8975; \rPA1 iter=40 #ex=2510080 #SV=8992; saving..done.\n",
"\rcache: 1000 sent. processed\rcache: 2000 sent. processed\rcache: 3000 sent. processed\rcache: 4000 sent. processed\rcache: 4185 sent. processed.\n",
"J.DepP profiler:\n",
"io : 0.0007 ms./trial (5.53825648/8387)\n",
"dict : 0.3014 ms.\n",
"preproc : 0.0034 ms./sent. (14.42684948/4185)\n",
"chunk : 0.0301 ms./sent. (125.80023283/4185)\n",
"\n",
"(input: STDIN [-I 1])\n",
"jdepp: found a tagged sentence that is not EOS-terminated.\n",
"\n",
"J.DepP profiler:\n",
"io : 0.0032 ms./trial (0.00632833/2)\n",
"dict : 0.2882 ms.\n",
"\n",
"\rlearn: 1000 sent. processed\rlearn: 2000 sent. processed\rlearn: 3000 sent. processed\rlearn: 4000 sent. processed\rlearn: 4185 sent. processed.\n",
"shrink splitN: 2^32-1 (= 4294967295) => 2^15-1 (= 32767)\n",
"shrink splitN: 2^15-1 (= 32767) => 2^14-1 (= 16383)\n",
"shrink splitN: 2^14-1 (= 16383) => 2^13-1 (= 8191)\n",
"\rPA1 iter=1 #ex=30173 #SV=14873; \rPA1 iter=2 #ex=60346 #SV=15114; \rPA1 iter=3 #ex=90519 #SV=15279; \rPA1 iter=4 #ex=120692 #SV=15393; \rPA1 iter=5 #ex=150865 #SV=15494; \rPA1 iter=6 #ex=181038 #SV=15567; \rPA1 iter=7 #ex=211211 #SV=15626; \rPA1 iter=8 #ex=241384 #SV=15669; \rPA1 iter=9 #ex=271557 #SV=15711; \rPA1 iter=10 #ex=301730 #SV=15753; \rPA1 iter=11 #ex=331903 #SV=15798; \rPA1 iter=12 #ex=362076 #SV=15839; \rPA1 iter=13 #ex=392249 #SV=15869; \rPA1 iter=14 #ex=422422 #SV=15902; \rPA1 iter=15 #ex=452595 #SV=15930; \rPA1 iter=16 #ex=482768 #SV=15960; \rPA1 iter=17 #ex=512941 #SV=15993; \rPA1 iter=18 #ex=543114 #SV=16022; \rPA1 iter=19 #ex=573287 #SV=16048; \rPA1 iter=20 #ex=603460 #SV=16079; \rPA1 iter=21 #ex=633633 #SV=16108; \rPA1 iter=22 #ex=663806 #SV=16138; \rPA1 iter=23 #ex=693979 #SV=16160; \rPA1 iter=24 #ex=724152 #SV=16190; \rPA1 iter=25 #ex=754325 #SV=16224; \rPA1 iter=26 #ex=784498 #SV=16243; \rPA1 iter=27 #ex=814671 #SV=16267; \rPA1 iter=28 #ex=844844 #SV=16292; \rPA1 iter=29 #ex=875017 #SV=16317; \rPA1 iter=30 #ex=905190 #SV=16335; \rPA1 iter=31 #ex=935363 #SV=16349; \rPA1 iter=32 #ex=965536 #SV=16368; \rPA1 iter=33 #ex=995709 #SV=16392; \rPA1 iter=34 #ex=1025882 #SV=16408; \rPA1 iter=35 #ex=1056055 #SV=16428; \rPA1 iter=36 #ex=1086228 #SV=16440; \rPA1 iter=37 #ex=1116401 #SV=16461; \rPA1 iter=38 #ex=1146574 #SV=16478; \rPA1 iter=39 #ex=1176747 #SV=16500; \rPA1 iter=40 #ex=1206920 #SV=16518; saving..done.\n",
"\rcache: 1000 sent. processed\rcache: 2000 sent. processed\rcache: 3000 sent. processed\rcache: 4000 sent. processed\rcache: 4185 sent. processed.\n",
"J.DepP profiler:\n",
"io : 0.0007 ms./trial (5.52277581/8387)\n",
"dict : 0.2543 ms.\n",
"preproc : 0.0044 ms./sent. (18.36374807/4185)\n",
"depnd : 0.0396 ms./sent. (165.60135061/4185)\n",
"\n",
"(input: STDIN [-I 2])\n",
"jdepp: found a tagged sentence that is not EOS-terminated.\n",
"\n",
"J.DepP profiler:\n",
"io : 0.0019 ms./trial (0.00384811/2)\n",
"dict : 0.2234 ms.\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!jdepp -h"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "0H_j85eFhJPY",
"outputId": "7fa1210e-df79-4511-d9d2-9ba30cb3a364"
},
"execution_count": 7,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"J.DepP - Japanese Dependency Parser\n",
"Copyright (c) 2008-2015 Naoki Yoshinaga\n",
"\n",
"Usage: jdepp [options] -- [learner options] -- [chunker classifier options] -- [parser classifier options] < test\n",
"\n",
"test test file\n",
"\n",
"Optional parameters in training / testing:\n",
" -t, --type=TYPE select running mode of J.DepP\n",
" 0 - learn\n",
" * 1 - parse\n",
" 2 - both\n",
" 3 - cache\n",
" -e, --encoding=TYPE select encoding of input\n",
" * 0 - UTF-8\n",
" 1 - EUC-JP\n",
" -i, --ignore=STR ignore input line starting with STR\n",
" -c, --corpus=FILE training corpus in JDEPP format ('train.JDP')\n",
" -m, --model-dir=DIR model directory ('/usr/local/lib/jdepp/model/knbc')\n",
" -p, --parser=TYPE select parsing algorithm\n",
" * 0 - shift reduce\n",
" 1 - cascaded chunking\n",
" 2 - backward\n",
" 3 - tournament\n",
" -I, --input-format=TYPE select type of input format\n",
" * 0 - POS-tagged sentences\n",
" 1 - + CHUNK annotation\n",
" 2 - + DEPENDENCY annotation\n",
"\n",
"Optional parameters in training:\n",
" -l, --learner=TYPE select type of learning library\n",
" * 0 - OPAL\n",
" 1 - SVM (disabled)\n",
" 2 - MaxEnt (disabled)\n",
" -n, --max-sent=INT max. # processing sentences (0: all)\n",
"\n",
"Misc.:\n",
" -v, --verbose=INT verbosity level (0)\n",
" -h, --help show this help and exit\n"
]
}
]
},
{
"cell_type": "markdown",
"source": [
"#### mecabなしの場合の入力ファイル形式\n",
"\n",
"学習で利用しているデータはmecabのjuman辞書形式(おそらく)\n",
"\n",
"juman, juman++ の結果は利用できない"
],
"metadata": {
"id": "tVJ6XTtuiXaX"
}
},
{
"cell_type": "code",
"source": [
"!head -n 20 /content/jdepp-2022-03-18/model/knbc/train.JDP.utf8"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "XdAi1jfxjmgn",
"outputId": "b9d258e3-06b9-4fcb-b12f-0f4c75b90a92"
},
"execution_count": 8,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"# S-ID:KN001_Keitai_1-1-1-01 KNP:2008/02/25 SCORE:-12.47259 MOD:2009/02/01\n",
"* 0 1D\n",
"[\t特殊,括弧始,*,*,[,[,*\n",
"携帯\t名詞,サ変名詞,*,*,携帯,けいたい,*\n",
"電話\t名詞,サ変名詞,*,*,電話,でんわ,*\n",
"]\t特殊,括弧終,*,*,],],*\n",
"* 1 -1D\n",
"プリペイド\t名詞,普通名詞,*,*,プリペイド,ぷりぺいど,*\n",
"カード\t名詞,普通名詞,*,*,カード,かーど,*\n",
"携帯\t名詞,サ変名詞,*,*,携帯,けいたい,*\n",
"布教\t名詞,サ変名詞,*,*,布教,ふきょう,*\n",
"。\t特殊,句点,*,*,。,。,*\n",
"EOS\n",
"# S-ID:KN001_Keitai_1-1-10-01 KNP:2008/02/25 SCORE:-36.56277 MOD:2009/06/25\n",
"* 0 1D\n",
"月\t名詞,時相名詞,*,*,月,つき,*\n",
"* 1 2D\n",
"1500\t名詞,数詞,*,*,1500,せんごひゃく,*\n",
"円\t接尾辞,名詞性名詞助数辞,*,*,円,えん,*\n",
"〜\t特殊,記号,*,*,〜,〜,*\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"%%bash\n",
"# `mecab -d /usr/local/lib/mecab/dic/jumandic` の実行結果\n",
"echo -e \"クロール\t名詞,普通名詞,*,*,クロール,くろーる,代表表記:クロール/くろーる カテゴリ:抽象物 ドメイン:スポーツ\n",
"で\t助詞,格助詞,*,*,で,で,*\n",
"泳いで\t動詞,*,子音動詞ガ行,タ系連用テ形,泳ぐ,およいで,代表表記:泳ぐ/およぐ\n",
"いる\t接尾辞,動詞性接尾辞,母音動詞,基本形,いる,いる,代表表記:いる/いる\n",
"少女\t名詞,普通名詞,*,*,少女,しょうじょ,代表表記:少女/しょうじょ カテゴリ:人\n",
"を\t助詞,格助詞,*,*,を,を,*\n",
"見た\t動詞,*,母音動詞,タ形,見る,みた,代表表記:見る/みる 補文ト 自他動詞:自:見える/みえる\n",
"EOS\" | jdepp"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "lPO2lo0bjplt",
"outputId": "f96086a9-9c73-44d8-ef4e-881fe0b37dab"
},
"execution_count": 9,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"# S-ID: 1; J.DepP\n",
"* 0 1D\n",
"クロール\t名詞,普通名詞,*,*,クロール,くろーる,代表表記:クロール/くろーる カテゴリ:抽象物 ドメイン:スポーツ\n",
"で\t助詞,格助詞,*,*,で,で,*\n",
"* 1 2D\n",
"泳いで\t動詞,*,子音動詞ガ行,タ系連用テ形,泳ぐ,およいで,代表表記:泳ぐ/およぐ\n",
"いる\t接尾辞,動詞性接尾辞,母音動詞,基本形,いる,いる,代表表記:いる/いる\n",
"* 2 3D\n",
"少女\t名詞,普通名詞,*,*,少女,しょうじょ,代表表記:少女/しょうじょ カテゴリ:人\n",
"を\t助詞,格助詞,*,*,を,を,*\n",
"* 3 -1D\n",
"見た\t動詞,*,母音動詞,タ形,見る,みた,代表表記:見る/みる 補文ト 自他動詞:自:見える/みえる\n",
"EOS\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"(input: STDIN [-I 0])\n",
"\n",
"J.DepP profiler:\n",
"io : 0.0067 ms./trial (0.02660846/4)\n",
"dict : 0.6940 ms.\n",
"preproc : 0.0166 ms.\n",
"chunk : 0.0200 ms.\n",
"depnd : 0.0118 ms.\n",
"\n"
]
}
]
},
{
"cell_type": "markdown",
"source": [
"# ※※以降はランタイムを再起動して実行確認している※※\n"
],
"metadata": {
"id": "OZX1CJO6tpKo"
}
},
{
"cell_type": "markdown",
"source": [
"## 「分かち書き機能あり」のインストール\n",
"\n",
"デフォルト設定だとmecabとjumandicのインストールが必要"
],
"metadata": {
"id": "HLlK6_TzlFjh"
}
},
{
"cell_type": "markdown",
"source": [
"### mecab と jumandic のインストール\n",
"\n",
"\n",
"aptでmecabをインストールすると、\n",
"辞書設定が\n",
"本来の辞書のインストール先と異なる。\n",
"\n",
"そのため、今回はソースからビルドする。\n",
"\n",
"google driveからのソースコード取得については [こちらのQiita記事](https://qiita.com/namakemono/items/c963e75e0af3f7eed732) を参考にした。\n",
"\n",
"google drive の仕様が変更した場合、URLの変更が必要になる。適宜変更すること。\n",
"\n",
"\n",
"#### ちなみに\n",
"\n",
"aptでインストールした場合\n",
"make 時に `configure: error: \"/usr/lib/x86_64-linux-gnu/mecab/dic/jumandic\" not found`\n",
"と表示されているので辞書の認識がうまくいかない\n",
"\n",
"\n",
"```bash\n",
"!sudo apt install mecab libmecab-dev mecab-ipadic-utf8 mecab-jumandic-utf8\n",
"\n",
"// 出力は省略\n",
"\n",
"!mecab-config --dicdir\n",
"/usr/lib/x86_64-linux-gnu/mecab/dic\n",
"```\n",
"\n",
"\n"
],
"metadata": {
"id": "336vOKs8umn3"
}
},
{
"cell_type": "code",
"source": [
"%%bash\n",
"# mecab のインストール\n",
"wget https://drive.google.com/uc?id=0B4y35FiV1wh7cENtOXlicTFaRUE -O - | tar zxvf -\n",
"cd mecab-0.996/\n",
"./configure\n",
"make\n",
"make install"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "VqFehcPnrh9X",
"outputId": "7cbf49ba-416c-4abe-89ce-3e50c0f4055e"
},
"execution_count": 1,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"mecab-0.996/\n",
"mecab-0.996/mecabrc.in\n",
"mecab-0.996/LGPL\n",
"mecab-0.996/Makefile.train\n",
"mecab-0.996/INSTALL\n",
"mecab-0.996/man/\n",
"mecab-0.996/man/Makefile.in\n",
"mecab-0.996/man/mecab.1\n",
"mecab-0.996/man/Makefile.am\n",
"mecab-0.996/Makefile.in\n",
"mecab-0.996/swig/\n",
"mecab-0.996/swig/version.h\n",
"mecab-0.996/swig/MeCab.i\n",
"mecab-0.996/swig/version.h.in\n",
"mecab-0.996/swig/Makefile\n",
"mecab-0.996/config.h.in\n",
"mecab-0.996/config.guess\n",
"mecab-0.996/README\n",
"mecab-0.996/config.sub\n",
"mecab-0.996/src/\n",
"mecab-0.996/src/nbest_generator.cpp\n",
"mecab-0.996/src/Makefile.in\n",
"mecab-0.996/src/make.bat\n",
"mecab-0.996/src/libmecab.cpp\n",
"mecab-0.996/src/dictionary_compiler.cpp\n",
"mecab-0.996/src/param.cpp\n",
"mecab-0.996/src/string_buffer.cpp\n",
"mecab-0.996/src/tokenizer.cpp\n",
"mecab-0.996/src/ucstable.h\n",
"mecab-0.996/src/eval.cpp\n",
"mecab-0.996/src/ucs.h\n",
"mecab-0.996/src/dictionary.h\n",
"mecab-0.996/src/learner_tagger.cpp\n",
"mecab-0.996/src/dictionary_rewriter.h\n",
"mecab-0.996/src/utils.h\n",
"mecab-0.996/src/mecab.h\n",
"mecab-0.996/src/learner_node.h\n",
"mecab-0.996/src/scoped_ptr.h\n",
"mecab-0.996/src/feature_index.h\n",
"mecab-0.996/src/dictionary.cpp\n",
"mecab-0.996/src/common.h\n",
"mecab-0.996/src/viterbi.h\n",
"mecab-0.996/src/mecab-test-gen.cpp\n",
"mecab-0.996/src/mecab-dict-index.cpp\n",
"mecab-0.996/src/connector.cpp\n",
"mecab-0.996/src/darts.h\n",
"mecab-0.996/src/winmain.h\n",
"mecab-0.996/src/char_property.cpp\n",
"mecab-0.996/src/viterbi.cpp\n",
"mecab-0.996/src/mecab-dict-gen.cpp\n",
"mecab-0.996/src/mmap.h\n",
"mecab-0.996/src/Makefile.msvc.in\n",
"mecab-0.996/src/char_property.h\n",
"mecab-0.996/src/writer.h\n",
"mecab-0.996/src/utils.cpp\n",
"mecab-0.996/src/iconv_utils.cpp\n",
"mecab-0.996/src/feature_index.cpp\n",
"mecab-0.996/src/context_id.cpp\n",
"mecab-0.996/src/context_id.h\n",
"mecab-0.996/src/freelist.h\n",
"mecab-0.996/src/learner_tagger.h\n",
"mecab-0.996/src/connector.h\n",
"mecab-0.996/src/lbfgs.cpp\n",
"mecab-0.996/src/mecab-cost-train.cpp\n",
"mecab-0.996/src/lbfgs.h\n",
"mecab-0.996/src/nbest_generator.h\n",
"mecab-0.996/src/mecab.cpp\n",
"mecab-0.996/src/dictionary_rewriter.cpp\n",
"mecab-0.996/src/tagger.cpp\n",
"mecab-0.996/src/iconv_utils.h\n",
"mecab-0.996/src/param.h\n",
"mecab-0.996/src/mecab-system-eval.cpp\n",
"mecab-0.996/src/dictionary_generator.cpp\n",
"mecab-0.996/src/string_buffer.h\n",
"mecab-0.996/src/stream_wrapper.h\n",
"mecab-0.996/src/tokenizer.h\n",
"mecab-0.996/src/learner.cpp\n",
"mecab-0.996/src/writer.cpp\n",
"mecab-0.996/src/thread.h\n",
"mecab-0.996/src/Makefile.am\n",
"mecab-0.996/ltmain.sh\n",
"mecab-0.996/configure\n",
"mecab-0.996/doc/\n",
"mecab-0.996/doc/format.html\n",
"mecab-0.996/doc/learn.html\n",
"mecab-0.996/doc/feature.png\n",
"mecab-0.996/doc/soft.html\n",
"mecab-0.996/doc/Makefile.in\n",
"mecab-0.996/doc/mecab.css\n",
"mecab-0.996/doc/index.html\n",
"mecab-0.996/doc/mecab.html\n",
"mecab-0.996/doc/result.png\n",
"mecab-0.996/doc/partial.html\n",
"mecab-0.996/doc/doxygen/\n",
"mecab-0.996/doc/doxygen/tab_l.gif\n",
"mecab-0.996/doc/doxygen/namespacemembers.html\n",
"mecab-0.996/doc/doxygen/namespaceMeCab.html\n",
"mecab-0.996/doc/doxygen/nav_f.png\n",
"mecab-0.996/doc/doxygen/globals_eval.html\n",
"mecab-0.996/doc/doxygen/mecab_8h-source.html\n",
"mecab-0.996/doc/doxygen/namespaces.html\n",
"mecab-0.996/doc/doxygen/nav_h.png\n",
"mecab-0.996/doc/doxygen/globals.html\n",
"mecab-0.996/doc/doxygen/tab_b.gif\n",
"mecab-0.996/doc/doxygen/classMeCab_1_1Tagger-members.html\n",
"mecab-0.996/doc/doxygen/functions.html\n",
"mecab-0.996/doc/doxygen/tab_r.gif\n",
"mecab-0.996/doc/doxygen/structmecab__dictionary__info__t-members.html\n",
"mecab-0.996/doc/doxygen/bc_s.png\n",
"mecab-0.996/doc/doxygen/namespacemembers_func.html\n",
"mecab-0.996/doc/doxygen/classMeCab_1_1Tagger.html\n",
"mecab-0.996/doc/doxygen/structmecab__node__t-members.html\n",
"mecab-0.996/doc/doxygen/functions_vars.html\n",
"mecab-0.996/doc/doxygen/index.html\n",
"mecab-0.996/doc/doxygen/structmecab__path__t-members.html\n",
"mecab-0.996/doc/doxygen/classMeCab_1_1Lattice-members.html\n",
"mecab-0.996/doc/doxygen/structmecab__dictionary__info__t.html\n",
"mecab-0.996/doc/doxygen/closed.png\n",
"mecab-0.996/doc/doxygen/classMeCab_1_1Model-members.html\n",
"mecab-0.996/doc/doxygen/tab_h.png\n",
"mecab-0.996/doc/doxygen/functions_func.html\n",
"mecab-0.996/doc/doxygen/tab_a.png\n",
"mecab-0.996/doc/doxygen/globals_defs.html\n",
"mecab-0.996/doc/doxygen/classMeCab_1_1Lattice.html\n",
"mecab-0.996/doc/doxygen/classes.html\n",
"mecab-0.996/doc/doxygen/tab_b.png\n",
"mecab-0.996/doc/doxygen/globals_type.html\n",
"mecab-0.996/doc/doxygen/doxygen.css\n",
"mecab-0.996/doc/doxygen/open.png\n",
"mecab-0.996/doc/doxygen/tab_s.png\n",
"mecab-0.996/doc/doxygen/globals_func.html\n",
"mecab-0.996/doc/doxygen/structmecab__path__t.html\n",
"mecab-0.996/doc/doxygen/files.html\n",
"mecab-0.996/doc/doxygen/doxygen.png\n",
"mecab-0.996/doc/doxygen/tabs.css\n",
"mecab-0.996/doc/doxygen/annotated.html\n",
"mecab-0.996/doc/doxygen/mecab_8h_source.html\n",
"mecab-0.996/doc/doxygen/structmecab__node__t.html\n",
"mecab-0.996/doc/doxygen/mecab_8h.html\n",
"mecab-0.996/doc/doxygen/namespacemembers_type.html\n",
"mecab-0.996/doc/doxygen/classMeCab_1_1Model.html\n",
"mecab-0.996/doc/feature.html\n",
"mecab-0.996/doc/bindings.html\n",
"mecab-0.996/doc/dic-detail.html\n",
"mecab-0.996/doc/flow.png\n",
"mecab-0.996/doc/en/\n",
"mecab-0.996/doc/en/bindings.html\n",
"mecab-0.996/doc/posid.html\n",
"mecab-0.996/doc/libmecab.html\n",
"mecab-0.996/doc/dic.html\n",
"mecab-0.996/doc/unk.html\n",
"mecab-0.996/doc/Makefile.am\n",
"mecab-0.996/ChangeLog\n",
"mecab-0.996/COPYING\n",
"mecab-0.996/NEWS\n",
"mecab-0.996/mkinstalldirs\n",
"mecab-0.996/AUTHORS\n",
"mecab-0.996/GPL\n",
"mecab-0.996/aclocal.m4\n",
"mecab-0.996/mecab.iss.in\n",
"mecab-0.996/BSD\n",
"mecab-0.996/mecab-config.in\n",
"mecab-0.996/install-sh\n",
"mecab-0.996/tests/\n",
"mecab-0.996/tests/autolink/\n",
"mecab-0.996/tests/autolink/char.def\n",
"mecab-0.996/tests/autolink/unk.def\n",
"mecab-0.996/tests/autolink/test\n",
"mecab-0.996/tests/autolink/matrix.def\n",
"mecab-0.996/tests/autolink/test.gld\n",
"mecab-0.996/tests/autolink/dic.csv\n",
"mecab-0.996/tests/autolink/dicrc\n",
"mecab-0.996/tests/Makefile.in\n",
"mecab-0.996/tests/katakana/\n",
"mecab-0.996/tests/katakana/char.def\n",
"mecab-0.996/tests/katakana/unk.def\n",
"mecab-0.996/tests/katakana/test\n",
"mecab-0.996/tests/katakana/matrix.def\n",
"mecab-0.996/tests/katakana/test.gld\n",
"mecab-0.996/tests/katakana/dic.csv\n",
"mecab-0.996/tests/katakana/dicrc\n",
"mecab-0.996/tests/latin/\n",
"mecab-0.996/tests/latin/char.def\n",
"mecab-0.996/tests/latin/unk.def\n",
"mecab-0.996/tests/latin/test\n",
"mecab-0.996/tests/latin/matrix.def\n",
"mecab-0.996/tests/latin/test.gld\n",
"mecab-0.996/tests/latin/dic.csv\n",
"mecab-0.996/tests/latin/dicrc\n",
"mecab-0.996/tests/chartype/\n",
"mecab-0.996/tests/chartype/char.def\n",
"mecab-0.996/tests/chartype/unk.def\n",
"mecab-0.996/tests/chartype/test\n",
"mecab-0.996/tests/chartype/matrix.def\n",
"mecab-0.996/tests/chartype/test.gld\n",
"mecab-0.996/tests/chartype/dic.csv\n",
"mecab-0.996/tests/chartype/dicrc\n",
"mecab-0.996/tests/shiin/\n",
"mecab-0.996/tests/shiin/char.def\n",
"mecab-0.996/tests/shiin/unk.def\n",
"mecab-0.996/tests/shiin/test\n",
"mecab-0.996/tests/shiin/matrix.def\n",
"mecab-0.996/tests/shiin/test.gld\n",
"mecab-0.996/tests/shiin/dic.csv\n",
"mecab-0.996/tests/shiin/dicrc\n",
"mecab-0.996/tests/shiin/mkdic.pl\n",
"mecab-0.996/tests/run-eval.sh\n",
"mecab-0.996/tests/cost-train/\n",
"mecab-0.996/tests/cost-train/seed/\n",
"mecab-0.996/tests/cost-train/seed/char.def\n",
"mecab-0.996/tests/cost-train/seed/unk.def\n",
"mecab-0.996/tests/cost-train/seed/rewrite.def\n",
"mecab-0.996/tests/cost-train/seed/feature.def\n",
"mecab-0.996/tests/cost-train/seed/matrix.def\n",
"mecab-0.996/tests/cost-train/seed/dic.csv\n",
"mecab-0.996/tests/cost-train/seed/dicrc\n",
"mecab-0.996/tests/cost-train/ipa.test\n",
"mecab-0.996/tests/cost-train/ipa.train\n",
"mecab-0.996/tests/run-cost-train.sh\n",
"mecab-0.996/tests/eval/\n",
"mecab-0.996/tests/eval/answer\n",
"mecab-0.996/tests/eval/system\n",
"mecab-0.996/tests/eval/test.gld\n",
"mecab-0.996/tests/ngram/\n",
"mecab-0.996/tests/ngram/char.def\n",
"mecab-0.996/tests/ngram/unk.def\n",
"mecab-0.996/tests/ngram/test\n",
"mecab-0.996/tests/ngram/matrix.def\n",
"mecab-0.996/tests/ngram/test.gld\n",
"mecab-0.996/tests/ngram/dic.csv\n",
"mecab-0.996/tests/ngram/dicrc\n",
"mecab-0.996/tests/run-dics.sh\n",
"mecab-0.996/tests/t9/\n",
"mecab-0.996/tests/t9/char.def\n",
"mecab-0.996/tests/t9/unk.def\n",
"mecab-0.996/tests/t9/test\n",
"mecab-0.996/tests/t9/matrix.def\n",
"mecab-0.996/tests/t9/ipadic.pl\n",
"mecab-0.996/tests/t9/test.gld\n",
"mecab-0.996/tests/t9/dic.csv\n",
"mecab-0.996/tests/t9/dicrc\n",
"mecab-0.996/tests/t9/mkdic.pl\n",
"mecab-0.996/tests/Makefile.am\n",
"mecab-0.996/missing\n",
"mecab-0.996/config.rpath\n",
"mecab-0.996/configure.in\n",
"mecab-0.996/example/\n",
"mecab-0.996/example/example_lattice.cpp\n",
"mecab-0.996/example/thread_test.cpp\n",
"mecab-0.996/example/example_lattice.c\n",
"mecab-0.996/example/example.c\n",
"mecab-0.996/example/example.cpp\n",
"mecab-0.996/Makefile.am\n",
"checking for a BSD-compatible install... /usr/bin/install -c\n",
"checking whether build environment is sane... yes\n",
"checking for a thread-safe mkdir -p... /usr/bin/mkdir -p\n",
"checking for gawk... no\n",
"checking for mawk... mawk\n",
"checking whether make sets $(MAKE)... yes\n",
"checking for gcc... gcc\n",
"checking whether the C compiler works... yes\n",
"checking for C compiler default output file name... a.out\n",
"checking for suffix of executables... \n",
"checking whether we are cross compiling... no\n",
"checking for suffix of object files... o\n",
"checking whether we are using the GNU C compiler... yes\n",
"checking whether gcc accepts -g... yes\n",
"checking for gcc option to accept ISO C89... none needed\n",
"checking for style of include used by make... GNU\n",
"checking dependency style of gcc... none\n",
"checking for g++... g++\n",
"checking whether we are using the GNU C++ compiler... yes\n",
"checking whether g++ accepts -g... yes\n",
"checking dependency style of g++... none\n",
"checking how to run the C preprocessor... gcc -E\n",
"checking for grep that handles long lines and -e... /usr/bin/grep\n",
"checking for egrep... /usr/bin/grep -E\n",
"checking whether gcc needs -traditional... no\n",
"checking whether make sets $(MAKE)... (cached) yes\n",
"checking build system type... x86_64-unknown-linux-gnu\n",
"checking host system type... x86_64-unknown-linux-gnu\n",
"checking how to print strings... printf\n",
"checking for a sed that does not truncate output... /usr/bin/sed\n",
"checking for fgrep... /usr/bin/grep -F\n",
"checking for ld used by gcc... /usr/bin/ld\n",
"checking if the linker (/usr/bin/ld) is GNU ld... yes\n",
"checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B\n",
"checking the name lister (/usr/bin/nm -B) interface... BSD nm\n",
"checking whether ln -s works... yes\n",
"checking the maximum length of command line arguments... 1572864\n",
"checking whether the shell understands some XSI constructs... yes\n",
"checking whether the shell understands \"+=\"... yes\n",
"checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop\n",
"checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop\n",
"checking for /usr/bin/ld option to reload object files... -r\n",
"checking for objdump... objdump\n",
"checking how to recognize dependent libraries... pass_all\n",
"checking for dlltool... dlltool\n",
"checking how to associate runtime and link libraries... printf %s\\n\n",
"checking for ar... ar\n",
"checking for archiver @FILE support... @\n",
"checking for strip... strip\n",
"checking for ranlib... ranlib\n",
"checking command to parse /usr/bin/nm -B output from gcc object... ok\n",
"checking for sysroot... no\n",
"checking for mt... no\n",
"checking if : is a manifest tool... no\n",
"checking for ANSI C header files... yes\n",
"checking for sys/types.h... yes\n",
"checking for sys/stat.h... yes\n",
"checking for stdlib.h... yes\n",
"checking for string.h... yes\n",
"checking for memory.h... yes\n",
"checking for strings.h... yes\n",
"checking for inttypes.h... yes\n",
"checking for stdint.h... yes\n",
"checking for unistd.h... yes\n",
"checking for dlfcn.h... yes\n",
"checking for objdir... .libs\n",
"checking if gcc supports -fno-rtti -fno-exceptions... no\n",
"checking for gcc option to produce PIC... -fPIC -DPIC\n",
"checking if gcc PIC flag -fPIC -DPIC works... yes\n",
"checking if gcc static flag -static works... yes\n",
"checking if gcc supports -c -o file.o... yes\n",
"checking if gcc supports -c -o file.o... (cached) yes\n",
"checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\n",
"checking whether -lc should be explicitly linked in... no\n",
"checking dynamic linker characteristics... GNU/Linux ld.so\n",
"checking how to hardcode library paths into programs... immediate\n",
"checking whether stripping libraries is possible... yes\n",
"checking if libtool supports shared libraries... yes\n",
"checking whether to build shared libraries... yes\n",
"checking whether to build static libraries... yes\n",
"checking how to run the C++ preprocessor... g++ -E\n",
"checking for ld used by g++... /usr/bin/ld -m elf_x86_64\n",
"checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes\n",
"checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\n",
"checking for g++ option to produce PIC... -fPIC -DPIC\n",
"checking if g++ PIC flag -fPIC -DPIC works... yes\n",
"checking if g++ static flag -static works... yes\n",
"checking if g++ supports -c -o file.o... yes\n",
"checking if g++ supports -c -o file.o... (cached) yes\n",
"checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes\n",
"checking dynamic linker characteristics... (cached) GNU/Linux ld.so\n",
"checking how to hardcode library paths into programs... immediate\n",
"checking for library containing strerror... none required\n",
"checking whether byte ordering is bigendian... no\n",
"checking for ld used by GCC... /usr/bin/ld -m elf_x86_64\n",
"checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes\n",
"checking for shared library run path origin... done\n",
"checking for iconv... yes\n",
"checking for working iconv... yes\n",
"checking for iconv declaration... \n",
" extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);\n",
"checking for ANSI C header files... (cached) yes\n",
"checking for an ANSI C-conforming const... yes\n",
"checking whether byte ordering is bigendian... (cached) no\n",
"checking for string.h... (cached) yes\n",
"checking for stdlib.h... (cached) yes\n",
"checking for unistd.h... (cached) yes\n",
"checking fcntl.h usability... yes\n",
"checking fcntl.h presence... yes\n",
"checking for fcntl.h... yes\n",
"checking for stdint.h... (cached) yes\n",
"checking for sys/stat.h... (cached) yes\n",
"checking sys/mman.h usability... yes\n",
"checking sys/mman.h presence... yes\n",
"checking for sys/mman.h... yes\n",
"checking sys/times.h usability... yes\n",
"checking sys/times.h presence... yes\n",
"checking for sys/times.h... yes\n",
"checking for sys/types.h... (cached) yes\n",
"checking dirent.h usability... yes\n",
"checking dirent.h presence... yes\n",
"checking for dirent.h... yes\n",
"checking ctype.h usability... yes\n",
"checking ctype.h presence... yes\n",
"checking for ctype.h... yes\n",
"checking for sys/types.h... (cached) yes\n",
"checking io.h usability... no\n",
"checking io.h presence... no\n",
"checking for io.h... no\n",
"checking windows.h usability... no\n",
"checking windows.h presence... no\n",
"checking for windows.h... no\n",
"checking pthread.h usability... yes\n",
"checking pthread.h presence... yes\n",
"checking for pthread.h... yes\n",
"checking for off_t... yes\n",
"checking for size_t... yes\n",
"checking size of char... 1\n",
"checking size of short... 2\n",
"checking size of int... 4\n",
"checking size of long... 8\n",
"checking size of long long... 8\n",
"checking size of size_t... 8\n",
"checking for size_t... (cached) yes\n",
"checking for unsigned long long int... yes\n",
"checking for stdlib.h... (cached) yes\n",
"checking for unistd.h... (cached) yes\n",
"checking for sys/param.h... yes\n",
"checking for getpagesize... yes\n",
"checking for working mmap... yes\n",
"checking for main in -lstdc++... yes\n",
"checking for pthread_create in -lpthread... yes\n",
"checking for pthread_join in -lpthread... yes\n",
"checking for getenv... yes\n",
"checking for opendir... yes\n",
"checking whether make is GNU Make... yes\n",
"checking if g++ supports stl <vector> (required)... yes\n",
"checking if g++ supports stl <list> (required)... yes\n",
"checking if g++ supports stl <map> (required)... yes\n",
"checking if g++ supports stl <set> (required)... yes\n",
"checking if g++ supports stl <queue> (required)... yes\n",
"checking if g++ supports stl <functional> (required)... yes\n",
"checking if g++ supports stl <algorithm> (required)... yes\n",
"checking if g++ supports stl <string> (required)... yes\n",
"checking if g++ supports stl <iostream> (required)... yes\n",
"checking if g++ supports stl <sstream> (required)... yes\n",
"checking if g++ supports stl <fstream> (required)... yes\n",
"checking if g++ supports template <class T> (required)... yes\n",
"checking if g++ supports const_cast<> (required)... yes\n",
"checking if g++ supports static_cast<> (required)... yes\n",
"checking if g++ supports reinterpret_cast<> (required)... yes\n",
"checking if g++ supports namespaces (required) ... yes\n",
"checking if g++ supports __thread (optional)... yes\n",
"checking if g++ supports template <class T> (required)... yes\n",
"checking if g++ supports GCC native atomic operations (optional)... yes\n",
"checking if g++ supports OSX native atomic operations (optional)... no\n",
"checking if g++ environment provides all required features... yes\n",
"configure: creating ./config.status\n",
"config.status: creating Makefile\n",
"config.status: creating src/Makefile\n",
"config.status: creating src/Makefile.msvc\n",
"config.status: creating man/Makefile\n",
"config.status: creating doc/Makefile\n",
"config.status: creating tests/Makefile\n",
"config.status: creating swig/version.h\n",
"config.status: creating mecab.iss\n",
"config.status: creating mecab-config\n",
"config.status: creating mecabrc\n",
"config.status: creating config.h\n",
"config.status: config.h is unchanged\n",
"config.status: executing depfiles commands\n",
"config.status: executing libtool commands\n",
"config.status: executing default commands\n",
"make all-recursive\n",
"make[1]: Entering directory '/content/mecab-0.996'\n",
"Making all in src\n",
"make[2]: Entering directory '/content/mecab-0.996/src'\n",
"make[2]: Nothing to be done for 'all'.\n",
"make[2]: Leaving directory '/content/mecab-0.996/src'\n",
"Making all in man\n",
"make[2]: Entering directory '/content/mecab-0.996/man'\n",
"make[2]: Nothing to be done for 'all'.\n",
"make[2]: Leaving directory '/content/mecab-0.996/man'\n",
"Making all in doc\n",
"make[2]: Entering directory '/content/mecab-0.996/doc'\n",
"make[2]: Nothing to be done for 'all'.\n",
"make[2]: Leaving directory '/content/mecab-0.996/doc'\n",
"Making all in tests\n",
"make[2]: Entering directory '/content/mecab-0.996/tests'\n",
"make[2]: Nothing to be done for 'all'.\n",
"make[2]: Leaving directory '/content/mecab-0.996/tests'\n",
"make[2]: Entering directory '/content/mecab-0.996'\n",
"make[2]: Leaving directory '/content/mecab-0.996'\n",
"make[1]: Leaving directory '/content/mecab-0.996'\n",
"Making install in src\n",
"make[1]: Entering directory '/content/mecab-0.996/src'\n",
"make[2]: Entering directory '/content/mecab-0.996/src'\n",
"test -z \"/usr/local/lib\" || /usr/bin/mkdir -p \"/usr/local/lib\"\n",
" /bin/bash ../libtool --mode=install /usr/bin/install -c libmecab.la '/usr/local/lib'\n",
"libtool: install: /usr/bin/install -c .libs/libmecab.so.2.0.0 /usr/local/lib/libmecab.so.2.0.0\n",
"libtool: install: (cd /usr/local/lib && { ln -s -f libmecab.so.2.0.0 libmecab.so.2 || { rm -f libmecab.so.2 && ln -s libmecab.so.2.0.0 libmecab.so.2; }; })\n",
"libtool: install: (cd /usr/local/lib && { ln -s -f libmecab.so.2.0.0 libmecab.so || { rm -f libmecab.so && ln -s libmecab.so.2.0.0 libmecab.so; }; })\n",
"libtool: install: /usr/bin/install -c .libs/libmecab.lai /usr/local/lib/libmecab.la\n",
"libtool: install: /usr/bin/install -c .libs/libmecab.a /usr/local/lib/libmecab.a\n",
"libtool: install: chmod 644 /usr/local/lib/libmecab.a\n",
"libtool: install: ranlib /usr/local/lib/libmecab.a\n",
"libtool: finish: PATH=\"/opt/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools/node/bin:/tools/google-cloud-sdk/bin:/sbin\" ldconfig -n /usr/local/lib\n",
"----------------------------------------------------------------------\n",
"Libraries have been installed in:\n",
" /usr/local/lib\n",
"\n",
"If you ever happen to want to link against installed libraries\n",
"in a given directory, LIBDIR, you must either use libtool, and\n",
"specify the full pathname of the library, or use the `-LLIBDIR'\n",
"flag during linking and do at least one of the following:\n",
" - add LIBDIR to the `LD_LIBRARY_PATH' environment variable\n",
" during execution\n",
" - add LIBDIR to the `LD_RUN_PATH' environment variable\n",
" during linking\n",
" - use the `-Wl,-rpath -Wl,LIBDIR' linker flag\n",
" - have your system administrator add LIBDIR to `/etc/ld.so.conf'\n",
"\n",
"See any operating system documentation about shared libraries for\n",
"more information, such as the ld(1) and ld.so(8) manual pages.\n",
"----------------------------------------------------------------------\n",
"test -z \"/usr/local/bin\" || /usr/bin/mkdir -p \"/usr/local/bin\"\n",
" /bin/bash ../libtool --mode=install /usr/bin/install -c mecab '/usr/local/bin'\n",
"libtool: install: /usr/bin/install -c .libs/mecab /usr/local/bin/mecab\n",
"test -z \"/usr/local/libexec/mecab\" || /usr/bin/mkdir -p \"/usr/local/libexec/mecab\"\n",
" /bin/bash ../libtool --mode=install /usr/bin/install -c mecab-dict-index mecab-dict-gen mecab-cost-train mecab-system-eval mecab-test-gen '/usr/local/libexec/mecab'\n",
"libtool: install: /usr/bin/install -c .libs/mecab-dict-index /usr/local/libexec/mecab/mecab-dict-index\n",
"libtool: install: /usr/bin/install -c .libs/mecab-dict-gen /usr/local/libexec/mecab/mecab-dict-gen\n",
"libtool: install: /usr/bin/install -c .libs/mecab-cost-train /usr/local/libexec/mecab/mecab-cost-train\n",
"libtool: install: /usr/bin/install -c .libs/mecab-system-eval /usr/local/libexec/mecab/mecab-system-eval\n",
"libtool: install: /usr/bin/install -c .libs/mecab-test-gen /usr/local/libexec/mecab/mecab-test-gen\n",
"test -z \"/usr/local/include\" || /usr/bin/mkdir -p \"/usr/local/include\"\n",
" /usr/bin/install -c -m 644 mecab.h '/usr/local/include'\n",
"make[2]: Leaving directory '/content/mecab-0.996/src'\n",
"make[1]: Leaving directory '/content/mecab-0.996/src'\n",
"Making install in man\n",
"make[1]: Entering directory '/content/mecab-0.996/man'\n",
"make[2]: Entering directory '/content/mecab-0.996/man'\n",
"make[2]: Nothing to be done for 'install-exec-am'.\n",
"test -z \"/usr/local/share/man/man1\" || /usr/bin/mkdir -p \"/usr/local/share/man/man1\"\n",
" /usr/bin/install -c -m 644 mecab.1 '/usr/local/share/man/man1'\n",
"make[2]: Leaving directory '/content/mecab-0.996/man'\n",
"make[1]: Leaving directory '/content/mecab-0.996/man'\n",
"Making install in doc\n",
"make[1]: Entering directory '/content/mecab-0.996/doc'\n",
"make[2]: Entering directory '/content/mecab-0.996/doc'\n",
"make[2]: Nothing to be done for 'install-exec-am'.\n",
"make[2]: Nothing to be done for 'install-data-am'.\n",
"make[2]: Leaving directory '/content/mecab-0.996/doc'\n",
"make[1]: Leaving directory '/content/mecab-0.996/doc'\n",
"Making install in tests\n",
"make[1]: Entering directory '/content/mecab-0.996/tests'\n",
"make[2]: Entering directory '/content/mecab-0.996/tests'\n",
"make[2]: Nothing to be done for 'install-exec-am'.\n",
"make[2]: Nothing to be done for 'install-data-am'.\n",
"make[2]: Leaving directory '/content/mecab-0.996/tests'\n",
"make[1]: Leaving directory '/content/mecab-0.996/tests'\n",
"make[1]: Entering directory '/content/mecab-0.996'\n",
"make[2]: Entering directory '/content/mecab-0.996'\n",
"test -z \"/usr/local/bin\" || /usr/bin/mkdir -p \"/usr/local/bin\"\n",
" /usr/bin/install -c mecab-config '/usr/local/bin'\n",
"test -z \"/usr/local/etc\" || /usr/bin/mkdir -p \"/usr/local/etc\"\n",
" /usr/bin/install -c -m 644 mecabrc '/usr/local/etc'\n",
"make[2]: Leaving directory '/content/mecab-0.996'\n",
"make[1]: Leaving directory '/content/mecab-0.996'\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"--2023-11-19 08:39:24-- https://drive.google.com/uc?id=0B4y35FiV1wh7cENtOXlicTFaRUE\n",
"Resolving drive.google.com (drive.google.com)... 74.125.197.102, 74.125.197.139, 74.125.197.100, ...\n",
"Connecting to drive.google.com (drive.google.com)|74.125.197.102|:443... connected.\n",
"HTTP request sent, awaiting response... 303 See Other\n",
"Location: https://doc-0c-74-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/0eondcdm2gtjbtsr7vkugh54s7rohi3s/1700383125000/13553212398903315502/*/0B4y35FiV1wh7cENtOXlicTFaRUE?uuid=5ee67616-caf8-478b-99d1-0657310b75d2 [following]\n",
"Warning: wildcards not supported in HTTP.\n",
"--2023-11-19 08:39:28-- https://doc-0c-74-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/0eondcdm2gtjbtsr7vkugh54s7rohi3s/1700383125000/13553212398903315502/*/0B4y35FiV1wh7cENtOXlicTFaRUE?uuid=5ee67616-caf8-478b-99d1-0657310b75d2\n",
"Resolving doc-0c-74-docs.googleusercontent.com (doc-0c-74-docs.googleusercontent.com)... 74.125.135.132, 2607:f8b0:400e:c08::84\n",
"Connecting to doc-0c-74-docs.googleusercontent.com (doc-0c-74-docs.googleusercontent.com)|74.125.135.132|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 1398663 (1.3M) [application/x-gzip]\n",
"Saving to: ‘STDOUT’\n",
"\n",
" 0K .......... .......... .......... .......... .......... 3% 46.8M 0s\n",
" 50K .......... .......... .......... .......... .......... 7% 88.4M 0s\n",
" 100K .......... .......... .......... .......... .......... 10% 96.9M 0s\n",
" 150K .......... .......... .......... .......... .......... 14% 144M 0s\n",
" 200K .......... .......... .......... .......... .......... 18% 127M 0s\n",
" 250K .......... .......... .......... .......... .......... 21% 138M 0s\n",
" 300K .......... .......... .......... .......... .......... 25% 49.8M 0s\n",
" 350K .......... .......... .......... .......... .......... 29% 2.82M 0s\n",
" 400K .......... .......... .......... .......... .......... 32% 84.9M 0s\n",
" 450K .......... .......... .......... .......... .......... 36% 108M 0s\n",
" 500K .......... .......... .......... .......... .......... 40% 79.8M 0s\n",
" 550K .......... .......... .......... .......... .......... 43% 88.5M 0s\n",
" 600K .......... .......... .......... .......... .......... 47% 3.74M 0s\n",
" 650K .......... .......... .......... .......... .......... 51% 133M 0s\n",
" 700K .......... .......... .......... .......... .......... 54% 141M 0s\n",
" 750K .......... .......... .......... .......... .......... 58% 117M 0s\n",
" 800K .......... .......... .......... .......... .......... 62% 76.6M 0s\n",
" 850K .......... .......... .......... .......... .......... 65% 3.43M 0s\n",
" 900K .......... .......... .......... .......... .......... 69% 168M 0s\n",
" 950K .......... .......... .......... .......... .......... 73% 242M 0s\n",
" 1000K .......... .......... .......... .......... .......... 76% 253M 0s\n",
" 1050K .......... .......... .......... .......... .......... 80% 63.7M 0s\n",
" 1100K .......... .......... .......... .......... .......... 84% 226M 0s\n",
" 1150K .......... .......... .......... .......... .......... 87% 3.58M 0s\n",
" 1200K .......... .......... .......... .......... .......... 91% 375M 0s\n",
" 1250K .......... .......... .......... .......... .......... 95% 303M 0s\n",
" 1300K .......... .......... .......... .......... .......... 98% 208M 0s\n",
" 1350K .......... ..... 100% 199M=0.07s\n",
"\n",
"2023-11-19 08:39:28 (19.4 MB/s) - written to stdout [1398663/1398663]\n",
"\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbbind_2_0.so.3 is not a symbolic link\n",
"\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbbind.so.3 is not a symbolic link\n",
"\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbbind_2_5.so.3 is not a symbolic link\n",
"\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbmalloc_proxy.so.2 is not a symbolic link\n",
"\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbb.so.12 is not a symbolic link\n",
"\n",
"/sbin/ldconfig.real: /usr/local/lib/libtbbmalloc.so.2 is not a symbolic link\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!which mecab"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "4qi3T4pel0WU",
"outputId": "0246e71e-4e67-4d1b-beaf-8eea140907a6"
},
"execution_count": 2,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"/usr/local/bin/mecab\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!mecab-config --dicdir"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "b9li2qiRnSg7",
"outputId": "68de686f-531e-4e81-b089-45bbc78bd242"
},
"execution_count": 3,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"/usr/local/lib/mecab/dic\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"%%bash\n",
"# jumandicのインストール\n",
"wget \"https://drive.google.com/uc?id=0B4y35FiV1wh7X2pESGlLREpxdXM&confirm=t\" -O - | tar zxvf -\n",
"cd mecab-jumandic*\n",
"./configure\n",
"make\n",
"make install"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "oru5jJcssSM7",
"outputId": "c67c534d-8286-4a3b-f45a-3e3a40ee24ce"
},
"execution_count": 4,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"mecab-jumandic-7.0-20130310/\n",
"mecab-jumandic-7.0-20130310/Demonstrative.csv\n",
"mecab-jumandic-7.0-20130310/char.def\n",
"mecab-jumandic-7.0-20130310/Emoticon.csv\n",
"mecab-jumandic-7.0-20130310/INSTALL\n",
"mecab-jumandic-7.0-20130310/RESULT\n",
"mecab-jumandic-7.0-20130310/unk.def\n",
"mecab-jumandic-7.0-20130310/Postp.csv\n",
"mecab-jumandic-7.0-20130310/left-id.def\n",
"mecab-jumandic-7.0-20130310/Makefile.in\n",
"mecab-jumandic-7.0-20130310/AuxV.csv\n",
"mecab-jumandic-7.0-20130310/right-id.def\n",
"mecab-jumandic-7.0-20130310/Noun.keishiki.csv\n",
"mecab-jumandic-7.0-20130310/pos-id.def\n",
"mecab-jumandic-7.0-20130310/model.def\n",
"mecab-jumandic-7.0-20130310/Special.csv\n",
"mecab-jumandic-7.0-20130310/rewrite.def\n",
"mecab-jumandic-7.0-20130310/feature.def\n",
"mecab-jumandic-7.0-20130310/README\n",
"mecab-jumandic-7.0-20130310/matrix.def\n",
"mecab-jumandic-7.0-20130310/configure\n",
"mecab-jumandic-7.0-20130310/Assert.csv\n",
"mecab-jumandic-7.0-20130310/ChangeLog\n",
"mecab-jumandic-7.0-20130310/COPYING\n",
"mecab-jumandic-7.0-20130310/NEWS\n",
"mecab-jumandic-7.0-20130310/Auto.csv\n",
"mecab-jumandic-7.0-20130310/AUTHORS\n",
"mecab-jumandic-7.0-20130310/Noun.hukusi.csv\n",
"mecab-jumandic-7.0-20130310/aclocal.m4\n",
"mecab-jumandic-7.0-20130310/Noun.koyuu.csv\n",
"mecab-jumandic-7.0-20130310/Wikipedia.csv\n",
"mecab-jumandic-7.0-20130310/install-sh\n",
"mecab-jumandic-7.0-20130310/ContentW.csv\n",
"mecab-jumandic-7.0-20130310/Noun.suusi.csv\n",
"mecab-jumandic-7.0-20130310/Prefix.csv\n",
"mecab-jumandic-7.0-20130310/missing\n",
"mecab-jumandic-7.0-20130310/Rengo.csv\n",
"mecab-jumandic-7.0-20130310/configure.in\n",
"mecab-jumandic-7.0-20130310/dicrc\n",
"mecab-jumandic-7.0-20130310/Suffix.csv\n",
"mecab-jumandic-7.0-20130310/Makefile.am\n",
"checking for a BSD-compatible install... /usr/bin/install -c\n",
"checking whether build environment is sane... yes\n",
"checking for a thread-safe mkdir -p... /usr/bin/mkdir -p\n",
"checking for gawk... no\n",
"checking for mawk... mawk\n",
"checking whether make sets $(MAKE)... yes\n",
"checking for mecab-config... /usr/local/bin/mecab-config\n",
"configure: creating ./config.status\n",
"config.status: creating Makefile\n",
"make: Nothing to be done for 'all'.\n",
"make[1]: Entering directory '/content/mecab-jumandic-7.0-20130310'\n",
"make[1]: Nothing to be done for 'install-exec-am'.\n",
"test -z \"/usr/local/lib/mecab/dic/jumandic\" || /usr/bin/mkdir -p \"/usr/local/lib/mecab/dic/jumandic\"\n",
" /usr/bin/install -c -m 644 matrix.bin char.bin sys.dic unk.dic left-id.def right-id.def rewrite.def dicrc pos-id.def '/usr/local/lib/mecab/dic/jumandic'\n",
"make[1]: Leaving directory '/content/mecab-jumandic-7.0-20130310'\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"--2023-11-19 08:40:07-- https://drive.google.com/uc?id=0B4y35FiV1wh7X2pESGlLREpxdXM&confirm=t\n",
"Resolving drive.google.com (drive.google.com)... 173.194.202.101, 173.194.202.102, 173.194.202.113, ...\n",
"Connecting to drive.google.com (drive.google.com)|173.194.202.101|:443... connected.\n",
"HTTP request sent, awaiting response... 303 See Other\n",
"Location: https://doc-0g-74-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/h2rbqlb4l7k9qdf717od3o115sv8vcal/1700383200000/13553212398903315502/*/0B4y35FiV1wh7X2pESGlLREpxdXM?uuid=4595700c-a001-4f48-ba5a-fe0bf281e431 [following]\n",
"Warning: wildcards not supported in HTTP.\n",
"--2023-11-19 08:40:07-- https://doc-0g-74-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/h2rbqlb4l7k9qdf717od3o115sv8vcal/1700383200000/13553212398903315502/*/0B4y35FiV1wh7X2pESGlLREpxdXM?uuid=4595700c-a001-4f48-ba5a-fe0bf281e431\n",
"Resolving doc-0g-74-docs.googleusercontent.com (doc-0g-74-docs.googleusercontent.com)... 74.125.142.132, 2607:f8b0:400e:c08::84\n",
"Connecting to doc-0g-74-docs.googleusercontent.com (doc-0g-74-docs.googleusercontent.com)|74.125.142.132|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 30146890 (29M) [application/x-gzip]\n",
"Saving to: ‘STDOUT’\n",
"\n",
" 0K .......... .......... .......... .......... .......... 0% 46.6M 1s\n",
" 50K .......... .......... .......... .......... .......... 0% 82.6M 0s\n",
" 100K .......... .......... .......... .......... .......... 0% 124M 0s\n",
" 150K .......... .......... .......... .......... .......... 0% 129M 0s\n",
" 200K .......... .......... .......... .......... .......... 0% 147M 0s\n",
" 250K .......... .......... .......... .......... .......... 1% 134M 0s\n",
" 300K .......... .......... .......... .......... .......... 1% 119M 0s\n",
" 350K .......... .......... .......... .......... .......... 1% 2.27M 2s\n",
" 400K .......... .......... .......... .......... .......... 1% 112M 2s\n",
" 450K .......... .......... .......... .......... .......... 1% 110M 1s\n",
" 500K .......... .......... .......... .......... .......... 1% 102M 1s\n",
" 550K .......... .......... .......... .......... .......... 2% 122M 1s\n",
" 600K .......... .......... .......... .......... .......... 2% 4.37M 2s\n",
" 650K .......... .......... .......... .......... .......... 2% 120M 2s\n",
" 700K .......... .......... .......... .......... .......... 2% 126M 1s\n",
" 750K .......... .......... .......... .......... .......... 2% 112M 1s\n",
" 800K .......... .......... .......... .......... .......... 2% 125M 1s\n",
" 850K .......... .......... .......... .......... .......... 3% 3.07M 2s\n",
" 900K .......... .......... .......... .......... .......... 3% 107M 2s\n",
" 950K .......... .......... .......... .......... .......... 3% 127M 2s\n",
" 1000K .......... .......... .......... .......... .......... 3% 123M 2s\n",
" 1050K .......... .......... .......... .......... .......... 3% 181M 1s\n",
" 1100K .......... .......... .......... .......... .......... 3% 241M 1s\n",
" 1150K .......... .......... .......... .......... .......... 4% 3.60M 2s\n",
" 1200K .......... .......... .......... .......... .......... 4% 326M 2s\n",
" 1250K .......... .......... .......... .......... .......... 4% 186M 2s\n",
" 1300K .......... .......... .......... .......... .......... 4% 303M 1s\n",
" 1350K .......... .......... .......... .......... .......... 4% 275M 1s\n",
" 1400K .......... .......... .......... .......... .......... 4% 3.78M 2s\n",
" 1450K .......... .......... .......... .......... .......... 5% 302M 2s\n",
" 1500K .......... .......... .......... .......... .......... 5% 360M 2s\n",
" 1550K .......... .......... .......... .......... .......... 5% 339M 1s\n",
" 1600K .......... .......... .......... .......... .......... 5% 153M 1s\n",
" 1650K .......... .......... .......... .......... .......... 5% 3.82M 2s\n",
" 1700K .......... .......... .......... .......... .......... 5% 326M 2s\n",
" 1750K .......... .......... .......... .......... .......... 6% 217M 2s\n",
" 1800K .......... .......... .......... .......... .......... 6% 172M 1s\n",
" 1850K .......... .......... .......... .......... .......... 6% 133M 1s\n",
" 1900K .......... .......... .......... .......... .......... 6% 3.58M 2s\n",
" 1950K .......... .......... .......... .......... .......... 6% 226M 2s\n",
" 2000K .......... .......... .......... .......... .......... 6% 378M 2s\n",
" 2050K .......... .......... .......... .......... .......... 7% 234M 1s\n",
" 2100K .......... .......... .......... .......... .......... 7% 273M 1s\n",
" 2150K .......... .......... .......... .......... .......... 7% 3.49M 2s\n",
" 2200K .......... .......... .......... .......... .......... 7% 265M 2s\n",
" 2250K .......... .......... .......... .......... .......... 7% 242M 2s\n",
" 2300K .......... .......... .......... .......... .......... 7% 353M 1s\n",
" 2350K .......... .......... .......... .......... .......... 8% 283M 1s\n",
" 2400K .......... .......... .......... .......... .......... 8% 3.52M 2s\n",
" 2450K .......... .......... .......... .......... .......... 8% 262M 2s\n",
" 2500K .......... .......... .......... .......... .......... 8% 302M 2s\n",
" 2550K .......... .......... .......... .......... .......... 8% 349M 1s\n",
" 2600K .......... .......... .......... .......... .......... 9% 354M 1s\n",
" 2650K .......... .......... .......... .......... .......... 9% 3.34M 2s\n",
" 2700K .......... .......... .......... .......... .......... 9% 318M 2s\n",
" 2750K .......... .......... .......... .......... .......... 9% 362M 1s\n",
" 2800K .......... .......... .......... .......... .......... 9% 347M 1s\n",
" 2850K .......... .......... .......... .......... .......... 9% 279M 1s\n",
" 2900K .......... .......... .......... .......... .......... 10% 332M 1s\n",
" 2950K .......... .......... .......... .......... .......... 10% 2.93M 2s\n",
" 3000K .......... .......... .......... .......... .......... 10% 248M 2s\n",
" 3050K .......... .......... .......... .......... .......... 10% 336M 1s\n",
" 3100K .......... .......... .......... .......... .......... 10% 240M 1s\n",
" 3150K .......... .......... .......... .......... .......... 10% 221M 1s\n",
" 3200K .......... .......... .......... .......... .......... 11% 3.72M 2s\n",
" 3250K .......... .......... .......... .......... .......... 11% 186M 1s\n",
" 3300K .......... .......... .......... .......... .......... 11% 270M 1s\n",
" 3350K .......... .......... .......... .......... .......... 11% 658M 1s\n",
" 3400K .......... .......... .......... .......... .......... 11% 217M 1s\n",
" 3450K .......... .......... .......... .......... .......... 11% 3.66M 2s\n",
" 3500K .......... .......... .......... .......... .......... 12% 236M 1s\n",
" 3550K .......... .......... .......... .......... .......... 12% 312M 1s\n",
" 3600K .......... .......... .......... .......... .......... 12% 372M 1s\n",
" 3650K .......... .......... .......... .......... .......... 12% 247M 1s\n",
" 3700K .......... .......... .......... .......... .......... 12% 3.61M 1s\n",
" 3750K .......... .......... .......... .......... .......... 12% 321M 1s\n",
" 3800K .......... .......... .......... .......... .......... 13% 236M 1s\n",
" 3850K .......... .......... .......... .......... .......... 13% 282M 1s\n",
" 3900K .......... .......... .......... .......... .......... 13% 296M 1s\n",
" 3950K .......... .......... .......... .......... .......... 13% 3.89M 1s\n",
" 4000K .......... .......... .......... .......... .......... 13% 280M 1s\n",
" 4050K .......... .......... .......... .......... .......... 13% 240M 1s\n",
" 4100K .......... .......... .......... .......... .......... 14% 302M 1s\n",
" 4150K .......... .......... .......... .......... .......... 14% 270M 1s\n",
" 4200K .......... .......... .......... .......... .......... 14% 3.87M 1s\n",
" 4250K .......... .......... .......... .......... .......... 14% 186M 1s\n",
" 4300K .......... .......... .......... .......... .......... 14% 388M 1s\n",
" 4350K .......... .......... .......... .......... .......... 14% 285M 1s\n",
" 4400K .......... .......... .......... .......... .......... 15% 369M 1s\n",
" 4450K .......... .......... .......... .......... .......... 15% 3.65M 1s\n",
" 4500K .......... .......... .......... .......... .......... 15% 313M 1s\n",
" 4550K .......... .......... .......... .......... .......... 15% 334M 1s\n",
" 4600K .......... .......... .......... .......... .......... 15% 276M 1s\n",
" 4650K .......... .......... .......... .......... .......... 15% 259M 1s\n",
" 4700K .......... .......... .......... .......... .......... 16% 3.37M 1s\n",
" 4750K .......... .......... .......... .......... .......... 16% 341M 1s\n",
" 4800K .......... .......... .......... .......... .......... 16% 335M 1s\n",
" 4850K .......... .......... .......... .......... .......... 16% 258M 1s\n",
" 4900K .......... .......... .......... .......... .......... 16% 316M 1s\n",
" 4950K .......... .......... .......... .......... .......... 16% 309M 1s\n",
" 5000K .......... .......... .......... .......... .......... 17% 5.24M 1s\n",
" 5050K .......... .......... .......... .......... .......... 17% 266M 1s\n",
" 5100K .......... .......... .......... .......... .......... 17% 297M 1s\n",
" 5150K .......... .......... .......... .......... .......... 17% 333M 1s\n",
" 5200K .......... .......... .......... .......... .......... 17% 304M 1s\n",
" 5250K .......... .......... .......... .......... .......... 18% 6.53M 1s\n",
" 5300K .......... .......... .......... .......... .......... 18% 299M 1s\n",
" 5350K .......... .......... .......... .......... .......... 18% 271M 1s\n",
" 5400K .......... .......... .......... .......... .......... 18% 369M 1s\n",
" 5450K .......... .......... .......... .......... .......... 18% 287M 1s\n",
" 5500K .......... .......... .......... .......... .......... 18% 6.33M 1s\n",
" 5550K .......... .......... .......... .......... .......... 19% 324M 1s\n",
" 5600K .......... .......... .......... .......... .......... 19% 275M 1s\n",
" 5650K .......... .......... .......... .......... .......... 19% 265M 1s\n",
" 5700K .......... .......... .......... .......... .......... 19% 313M 1s\n",
" 5750K .......... .......... .......... .......... .......... 19% 6.55M 1s\n",
" 5800K .......... .......... .......... .......... .......... 19% 356M 1s\n",
" 5850K .......... .......... .......... .......... .......... 20% 249M 1s\n",
" 5900K .......... .......... .......... .......... .......... 20% 329M 1s\n",
" 5950K .......... .......... .......... .......... .......... 20% 330M 1s\n",
" 6000K .......... .......... .......... .......... .......... 20% 5.81M 1s\n",
" 6050K .......... .......... .......... .......... .......... 20% 242M 1s\n",
" 6100K .......... .......... .......... .......... .......... 20% 329M 1s\n",
" 6150K .......... .......... .......... .......... .......... 21% 361M 1s\n",
" 6200K .......... .......... .......... .......... .......... 21% 261M 1s\n",
" 6250K .......... .......... .......... .......... .......... 21% 6.59M 1s\n",
" 6300K .......... .......... .......... .......... .......... 21% 349M 1s\n",
" 6350K .......... .......... .......... .......... .......... 21% 323M 1s\n",
" 6400K .......... .......... .......... .......... .......... 21% 333M 1s\n",
" 6450K .......... .......... .......... .......... .......... 22% 287M 1s\n",
" 6500K .......... .......... .......... .......... .......... 22% 7.47M 1s\n",
" 6550K .......... .......... .......... .......... .......... 22% 354M 1s\n",
" 6600K .......... .......... .......... .......... .......... 22% 312M 1s\n",
" 6650K .......... .......... .......... .......... .......... 22% 285M 1s\n",
" 6700K .......... .......... .......... .......... .......... 22% 270M 1s\n",
" 6750K .......... .......... .......... .......... .......... 23% 6.72M 1s\n",
" 6800K .......... .......... .......... .......... .......... 23% 350M 1s\n",
" 6850K .......... .......... .......... .......... .......... 23% 274M 1s\n",
" 6900K .......... .......... .......... .......... .......... 23% 349M 1s\n",
" 6950K .......... .......... .......... .......... .......... 23% 297M 1s\n",
" 7000K .......... .......... .......... .......... .......... 23% 245M 1s\n",
" 7050K .......... .......... .......... .......... .......... 24% 6.88M 1s\n",
" 7100K .......... .......... .......... .......... .......... 24% 319M 1s\n",
" 7150K .......... .......... .......... .......... .......... 24% 361M 1s\n",
" 7200K .......... .......... .......... .......... .......... 24% 326M 1s\n",
" 7250K .......... .......... .......... .......... .......... 24% 230M 1s\n",
" 7300K .......... .......... .......... .......... .......... 24% 5.94M 1s\n",
" 7350K .......... .......... .......... .......... .......... 25% 305M 1s\n",
" 7400K .......... .......... .......... .......... .......... 25% 350M 1s\n",
" 7450K .......... .......... .......... .......... .......... 25% 204M 1s\n",
" 7500K .......... .......... .......... .......... .......... 25% 153M 1s\n",
" 7550K .......... .......... .......... .......... .......... 25% 3.33M 1s\n",
" 7600K .......... .......... .......... .......... .......... 25% 259M 1s\n",
" 7650K .......... .......... .......... .......... .......... 26% 139M 1s\n",
" 7700K .......... .......... .......... .......... .......... 26% 172M 1s\n",
" 7750K .......... .......... .......... .......... .......... 26% 322M 1s\n",
" 7800K .......... .......... .......... .......... .......... 26% 6.26M 1s\n",
" 7850K .......... .......... .......... .......... .......... 26% 244M 1s\n",
" 7900K .......... .......... .......... .......... .......... 27% 326M 1s\n",
" 7950K .......... .......... .......... .......... .......... 27% 316M 1s\n",
" 8000K .......... .......... .......... .......... .......... 27% 135M 1s\n",
" 8050K .......... .......... .......... .......... .......... 27% 5.56M 1s\n",
" 8100K .......... .......... .......... .......... .......... 27% 47.1M 1s\n",
" 8150K .......... .......... .......... .......... .......... 27% 385M 1s\n",
" 8200K .......... .......... .......... .......... .......... 28% 173M 1s\n",
" 8250K .......... .......... .......... .......... .......... 28% 144M 1s\n",
" 8300K .......... .......... .......... .......... .......... 28% 5.04M 1s\n",
" 8350K .......... .......... .......... .......... .......... 28% 238M 1s\n",
" 8400K .......... .......... .......... .......... .......... 28% 394M 1s\n",
" 8450K .......... .......... .......... .......... .......... 28% 294M 1s\n",
" 8500K .......... .......... .......... .......... .......... 29% 191M 1s\n",
" 8550K .......... .......... .......... .......... .......... 29% 5.59M 1s\n",
" 8600K .......... .......... .......... .......... .......... 29% 334M 1s\n",
" 8650K .......... .......... .......... .......... .......... 29% 248M 1s\n",
" 8700K .......... .......... .......... .......... .......... 29% 341M 1s\n",
" 8750K .......... .......... .......... .......... .......... 29% 365M 1s\n",
" 8800K .......... .......... .......... .......... .......... 30% 5.67M 1s\n",
" 8850K .......... .......... .......... .......... .......... 30% 280M 1s\n",
" 8900K .......... .......... .......... .......... .......... 30% 378M 1s\n",
" 8950K .......... .......... .......... .......... .......... 30% 307M 1s\n",
" 9000K .......... .......... .......... .......... .......... 30% 290M 1s\n",
" 9050K .......... .......... .......... .......... .......... 30% 5.73M 1s\n",
" 9100K .......... .......... .......... .......... .......... 31% 315M 1s\n",
" 9150K .......... .......... .......... .......... .......... 31% 279M 1s\n",
" 9200K .......... .......... .......... .......... .......... 31% 349M 1s\n",
" 9250K .......... .......... .......... .......... .......... 31% 252M 1s\n",
" 9300K .......... .......... .......... .......... .......... 31% 314M 1s\n",
" 9350K .......... .......... .......... .......... .......... 31% 5.62M 1s\n",
" 9400K .......... .......... .......... .......... .......... 32% 240M 1s\n",
" 9450K .......... .......... .......... .......... .......... 32% 274M 1s\n",
" 9500K .......... .......... .......... .......... .......... 32% 268M 1s\n",
" 9550K .......... .......... .......... .......... .......... 32% 338M 1s\n",
" 9600K .......... .......... .......... .......... .......... 32% 5.57M 1s\n",
" 9650K .......... .......... .......... .......... .......... 32% 227M 1s\n",
" 9700K .......... .......... .......... .......... .......... 33% 324M 1s\n",
" 9750K .......... .......... .......... .......... .......... 33% 524M 1s\n",
" 9800K .......... .......... .......... .......... .......... 33% 187M 1s\n",
" 9850K .......... .......... .......... .......... .......... 33% 5.67M 1s\n",
" 9900K .......... .......... .......... .......... .......... 33% 365M 1s\n",
" 9950K .......... .......... .......... .......... .......... 33% 320M 1s\n",
" 10000K .......... .......... .......... .......... .......... 34% 287M 1s\n",
" 10050K .......... .......... .......... .......... .......... 34% 323M 1s\n",
" 10100K .......... .......... .......... .......... .......... 34% 5.62M 1s\n",
" 10150K .......... .......... .......... .......... .......... 34% 339M 1s\n",
" 10200K .......... .......... .......... .......... .......... 34% 274M 1s\n",
" 10250K .......... .......... .......... .......... .......... 34% 320M 1s\n",
" 10300K .......... .......... .......... .......... .......... 35% 333M 1s\n",
" 10350K .......... .......... .......... .......... .......... 35% 5.46M 1s\n",
" 10400K .......... .......... .......... .......... .......... 35% 256M 1s\n",
" 10450K .......... .......... .......... .......... .......... 35% 253M 1s\n",
" 10500K .......... .......... .......... .......... .......... 35% 328M 1s\n",
" 10550K .......... .......... .......... .......... .......... 36% 243M 1s\n",
" 10600K .......... .......... .......... .......... .......... 36% 5.46M 1s\n",
" 10650K .......... .......... .......... .......... .......... 36% 367M 1s\n",
" 10700K .......... .......... .......... .......... .......... 36% 342M 1s\n",
" 10750K .......... .......... .......... .......... .......... 36% 256M 1s\n",
" 10800K .......... .......... .......... .......... .......... 36% 312M 1s\n",
" 10850K .......... .......... .......... .......... .......... 37% 5.75M 1s\n",
" 10900K .......... .......... .......... .......... .......... 37% 350M 1s\n",
" 10950K .......... .......... .......... .......... .......... 37% 317M 1s\n",
" 11000K .......... .......... .......... .......... .......... 37% 313M 1s\n",
" 11050K .......... .......... .......... .......... .......... 37% 302M 1s\n",
" 11100K .......... .......... .......... .......... .......... 37% 325M 1s\n",
" 11150K .......... .......... .......... .......... .......... 38% 5.99M 1s\n",
" 11200K .......... .......... .......... .......... .......... 38% 335M 1s\n",
" 11250K .......... .......... .......... .......... .......... 38% 294M 1s\n",
" 11300K .......... .......... .......... .......... .......... 38% 339M 1s\n",
" 11350K .......... .......... .......... .......... .......... 38% 342M 1s\n",
" 11400K .......... .......... .......... .......... .......... 38% 6.14M 1s\n",
" 11450K .......... .......... .......... .......... .......... 39% 305M 1s\n",
" 11500K .......... .......... .......... .......... .......... 39% 352M 1s\n",
" 11550K .......... .......... .......... .......... .......... 39% 263M 1s\n",
" 11600K .......... .......... .......... .......... .......... 39% 386M 1s\n",
" 11650K .......... .......... .......... .......... .......... 39% 6.26M 1s\n",
" 11700K .......... .......... .......... .......... .......... 39% 302M 1s\n",
" 11750K .......... .......... .......... .......... .......... 40% 300M 1s\n",
" 11800K .......... .......... .......... .......... .......... 40% 344M 1s\n",
" 11850K .......... .......... .......... .......... .......... 40% 354M 1s\n",
" 11900K .......... .......... .......... .......... .......... 40% 6.13M 1s\n",
" 11950K .......... .......... .......... .......... .......... 40% 241M 1s\n",
" 12000K .......... .......... .......... .......... .......... 40% 305M 1s\n",
" 12050K .......... .......... .......... .......... .......... 41% 247M 1s\n",
" 12100K .......... .......... .......... .......... .......... 41% 241M 1s\n",
" 12150K .......... .......... .......... .......... .......... 41% 6.36M 1s\n",
" 12200K .......... .......... .......... .......... .......... 41% 317M 1s\n",
" 12250K .......... .......... .......... .......... .......... 41% 255M 1s\n",
" 12300K .......... .......... .......... .......... .......... 41% 329M 1s\n",
" 12350K .......... .......... .......... .......... .......... 42% 375M 1s\n",
" 12400K .......... .......... .......... .......... .......... 42% 6.24M 1s\n",
" 12450K .......... .......... .......... .......... .......... 42% 340M 1s\n",
" 12500K .......... .......... .......... .......... .......... 42% 317M 1s\n",
" 12550K .......... .......... .......... .......... .......... 42% 259M 1s\n",
" 12600K .......... .......... .......... .......... .......... 42% 365M 1s\n",
" 12650K .......... .......... .......... .......... .......... 43% 6.28M 1s\n",
" 12700K .......... .......... .......... .......... .......... 43% 326M 1s\n",
" 12750K .......... .......... .......... .......... .......... 43% 281M 1s\n",
" 12800K .......... .......... .......... .......... .......... 43% 297M 1s\n",
" 12850K .......... .......... .......... .......... .......... 43% 365M 1s\n",
" 12900K .......... .......... .......... .......... .......... 43% 6.35M 1s\n",
" 12950K .......... .......... .......... .......... .......... 44% 271M 1s\n",
" 13000K .......... .......... .......... .......... .......... 44% 340M 1s\n",
" 13050K .......... .......... .......... .......... .......... 44% 279M 1s\n",
" 13100K .......... .......... .......... .......... .......... 44% 329M 1s\n",
" 13150K .......... .......... .......... .......... .......... 44% 6.18M 1s\n",
" 13200K .......... .......... .......... .......... .......... 45% 311M 1s\n",
" 13250K .......... .......... .......... .......... .......... 45% 345M 1s\n",
" 13300K .......... .......... .......... .......... .......... 45% 285M 1s\n",
" 13350K .......... .......... .......... .......... .......... 45% 305M 1s\n",
" 13400K .......... .......... .......... .......... .......... 45% 416M 1s\n",
" 13450K .......... .......... .......... .......... .......... 45% 5.48M 1s\n",
" 13500K .......... .......... .......... .......... .......... 46% 265M 1s\n",
" 13550K .......... .......... .......... .......... .......... 46% 252M 1s\n",
" 13600K .......... .......... .......... .......... .......... 46% 336M 1s\n",
" 13650K .......... .......... .......... .......... .......... 46% 668M 1s\n",
" 13700K .......... .......... .......... .......... .......... 46% 6.07M 1s\n",
" 13750K .......... .......... .......... .......... .......... 46% 240M 1s\n",
" 13800K .......... .......... .......... .......... .......... 47% 282M 1s\n",
" 13850K .......... .......... .......... .......... .......... 47% 308M 1s\n",
" 13900K .......... .......... .......... .......... .......... 47% 674M 1s\n",
" 13950K .......... .......... .......... .......... .......... 47% 5.86M 1s\n",
" 14000K .......... .......... .......... .......... .......... 47% 251M 1s\n",
" 14050K .......... .......... .......... .......... .......... 47% 294M 1s\n",
" 14100K .......... .......... .......... .......... .......... 48% 682M 1s\n",
" 14150K .......... .......... .......... .......... .......... 48% 313M 1s\n",
" 14200K .......... .......... .......... .......... .......... 48% 5.87M 1s\n",
" 14250K .......... .......... .......... .......... .......... 48% 340M 1s\n",
" 14300K .......... .......... .......... .......... .......... 48% 286M 1s\n",
" 14350K .......... .......... .......... .......... .......... 48% 322M 1s\n",
" 14400K .......... .......... .......... .......... .......... 49% 344M 1s\n",
" 14450K .......... .......... .......... .......... .......... 49% 5.96M 1s\n",
" 14500K .......... .......... .......... .......... .......... 49% 228M 1s\n",
" 14550K .......... .......... .......... .......... .......... 49% 259M 1s\n",
" 14600K .......... .......... .......... .......... .......... 49% 634M 1s\n",
" 14650K .......... .......... .......... .......... .......... 49% 295M 1s\n",
" 14700K .......... .......... .......... .......... .......... 50% 3.60M 1s\n",
" 14750K .......... .......... .......... .......... .......... 50% 275M 1s\n",
" 14800K .......... .......... .......... .......... .......... 50% 283M 1s\n",
" 14850K .......... .......... .......... .......... .......... 50% 334M 1s\n",
" 14900K .......... .......... .......... .......... .......... 50% 357M 1s\n",
" 14950K .......... .......... .......... .......... .......... 50% 5.87M 1s\n",
" 15000K .......... .......... .......... .......... .......... 51% 334M 1s\n",
" 15050K .......... .......... .......... .......... .......... 51% 294M 1s\n",
" 15100K .......... .......... .......... .......... .......... 51% 332M 1s\n",
" 15150K .......... .......... .......... .......... .......... 51% 247M 1s\n",
" 15200K .......... .......... .......... .......... .......... 51% 5.77M 1s\n",
" 15250K .......... .......... .......... .......... .......... 51% 309M 1s\n",
" 15300K .......... .......... .......... .......... .......... 52% 309M 1s\n",
" 15350K .......... .......... .......... .......... .......... 52% 302M 1s\n",
" 15400K .......... .......... .......... .......... .......... 52% 371M 1s\n",
" 15450K .......... .......... .......... .......... .......... 52% 410M 1s\n",
" 15500K .......... .......... .......... .......... .......... 52% 5.84M 1s\n",
" 15550K .......... .......... .......... .......... .......... 52% 266M 1s\n",
" 15600K .......... .......... .......... .......... .......... 53% 302M 1s\n",
" 15650K .......... .......... .......... .......... .......... 53% 338M 1s\n",
" 15700K .......... .......... .......... .......... .......... 53% 404M 1s\n",
" 15750K .......... .......... .......... .......... .......... 53% 5.24M 1s\n",
" 15800K .......... .......... .......... .......... .......... 53% 267M 1s\n",
" 15850K .......... .......... .......... .......... .......... 54% 325M 1s\n",
" 15900K .......... .......... .......... .......... .......... 54% 345M 1s\n",
" 15950K .......... .......... .......... .......... .......... 54% 351M 1s\n",
" 16000K .......... .......... .......... .......... .......... 54% 5.67M 1s\n",
" 16050K .......... .......... .......... .......... .......... 54% 259M 1s\n",
" 16100K .......... .......... .......... .......... .......... 54% 338M 1s\n",
" 16150K .......... .......... .......... .......... .......... 55% 316M 1s\n",
" 16200K .......... .......... .......... .......... .......... 55% 401M 1s\n",
" 16250K .......... .......... .......... .......... .......... 55% 5.49M 1s\n",
" 16300K .......... .......... .......... .......... .......... 55% 253M 1s\n",
" 16350K .......... .......... .......... .......... .......... 55% 320M 1s\n",
" 16400K .......... .......... .......... .......... .......... 55% 560M 1s\n",
" 16450K .......... .......... .......... .......... .......... 56% 293M 1s\n",
" 16500K .......... .......... .......... .......... .......... 56% 5.67M 1s\n",
" 16550K .......... .......... .......... .......... .......... 56% 228M 1s\n",
" 16600K .......... .......... .......... .......... .......... 56% 323M 1s\n",
" 16650K .......... .......... .......... .......... .......... 56% 688M 1s\n",
" 16700K .......... .......... .......... .......... .......... 56% 309M 1s\n",
" 16750K .......... .......... .......... .......... .......... 57% 5.76M 1s\n",
" 16800K .......... .......... .......... .......... .......... 57% 247M 1s\n",
" 16850K .......... .......... .......... .......... .......... 57% 656M 1s\n",
" 16900K .......... .......... .......... .......... .......... 57% 333M 1s\n",
" 16950K .......... .......... .......... .......... .......... 57% 267M 1s\n",
" 17000K .......... .......... .......... .......... .......... 57% 5.07M 1s\n",
" 17050K .......... .......... .......... .......... .......... 58% 234M 1s\n",
" 17100K .......... .......... .......... .......... .......... 58% 681M 1s\n",
" 17150K .......... .......... .......... .......... .......... 58% 292M 1s\n",
" 17200K .......... .......... .......... .......... .......... 58% 221M 1s\n",
" 17250K .......... .......... .......... .......... .......... 58% 5.65M 1s\n",
" 17300K .......... .......... .......... .......... .......... 58% 567M 1s\n",
" 17350K .......... .......... .......... .......... .......... 59% 179M 1s\n",
" 17400K .......... .......... .......... .......... .......... 59% 321M 0s\n",
" 17450K .......... .......... .......... .......... .......... 59% 263M 0s\n",
" 17500K .......... .......... .......... .......... .......... 59% 5.80M 0s\n",
" 17550K .......... .......... .......... .......... .......... 59% 314M 0s\n",
" 17600K .......... .......... .......... .......... .......... 59% 242M 0s\n",
" 17650K .......... .......... .......... .......... .......... 60% 297M 0s\n",
" 17700K .......... .......... .......... .......... .......... 60% 284M 0s\n",
" 17750K .......... .......... .......... .......... .......... 60% 5.61M 0s\n",
" 17800K .......... .......... .......... .......... .......... 60% 331M 0s\n",
" 17850K .......... .......... .......... .......... .......... 60% 349M 0s\n",
" 17900K .......... .......... .......... .......... .......... 60% 356M 0s\n",
" 17950K .......... .......... .......... .......... .......... 61% 233M 0s\n",
" 18000K .......... .......... .......... .......... .......... 61% 304M 0s\n",
" 18050K .......... .......... .......... .......... .......... 61% 5.54M 0s\n",
" 18100K .......... .......... .......... .......... .......... 61% 199M 0s\n",
" 18150K .......... .......... .......... .......... .......... 61% 260M 0s\n",
" 18200K .......... .......... .......... .......... .......... 61% 504M 0s\n",
" 18250K .......... .......... .......... .......... .......... 62% 333M 0s\n",
" 18300K .......... .......... .......... .......... .......... 62% 5.24M 0s\n",
" 18350K .......... .......... .......... .......... .......... 62% 197M 0s\n",
" 18400K .......... .......... .......... .......... .......... 62% 297M 0s\n",
" 18450K .......... .......... .......... .......... .......... 62% 491M 0s\n",
" 18500K .......... .......... .......... .......... .......... 63% 316M 0s\n",
" 18550K .......... .......... .......... .......... .......... 63% 4.09M 0s\n",
" 18600K .......... .......... .......... .......... .......... 63% 147M 0s\n",
" 18650K .......... .......... .......... .......... .......... 63% 175M 0s\n",
" 18700K .......... .......... .......... .......... .......... 63% 319M 0s\n",
" 18750K .......... .......... .......... .......... .......... 63% 173M 0s\n",
" 18800K .......... .......... .......... .......... .......... 64% 4.35M 0s\n",
" 18850K .......... .......... .......... .......... .......... 64% 148M 0s\n",
" 18900K .......... .......... .......... .......... .......... 64% 585M 0s\n",
" 18950K .......... .......... .......... .......... .......... 64% 284M 0s\n",
" 19000K .......... .......... .......... .......... .......... 64% 262M 0s\n",
" 19050K .......... .......... .......... .......... .......... 64% 5.51M 0s\n",
" 19100K .......... .......... .......... .......... .......... 65% 216M 0s\n",
" 19150K .......... .......... .......... .......... .......... 65% 322M 0s\n",
" 19200K .......... .......... .......... .......... .......... 65% 219M 0s\n",
" 19250K .......... .......... .......... .......... .......... 65% 275M 0s\n",
" 19300K .......... .......... .......... .......... .......... 65% 3.07M 0s\n",
" 19350K .......... .......... .......... .......... .......... 65% 228M 0s\n",
" 19400K .......... .......... .......... .......... .......... 66% 394M 0s\n",
" 19450K .......... .......... .......... .......... .......... 66% 338M 0s\n",
" 19500K .......... .......... .......... .......... .......... 66% 322M 0s\n",
" 19550K .......... .......... .......... .......... .......... 66% 3.19M 0s\n",
" 19600K .......... .......... .......... .......... .......... 66% 308M 0s\n",
" 19650K .......... .......... .......... .......... .......... 66% 340M 0s\n",
" 19700K .......... .......... .......... .......... .......... 67% 347M 0s\n",
" 19750K .......... .......... .......... .......... .......... 67% 273M 0s\n",
" 19800K .......... .......... .......... .......... .......... 67% 3.94M 0s\n",
" 19850K .......... .......... .......... .......... .......... 67% 503M 0s\n",
" 19900K .......... .......... .......... .......... .......... 67% 268M 0s\n",
" 19950K .......... .......... .......... .......... .......... 67% 278M 0s\n",
" 20000K .......... .......... .......... .......... .......... 68% 342M 0s\n",
" 20050K .......... .......... .......... .......... .......... 68% 699M 0s\n",
" 20100K .......... .......... .......... .......... .......... 68% 2.95M 0s\n",
" 20150K .......... .......... .......... .......... .......... 68% 64.6M 0s\n",
" 20200K .......... .......... .......... .......... .......... 68% 367M 0s\n",
" 20250K .......... .......... .......... .......... .......... 68% 184M 0s\n",
" 20300K .......... .......... .......... .......... .......... 69% 391M 0s\n",
" 20350K .......... .......... .......... .......... .......... 69% 3.29M 0s\n",
" 20400K .......... .......... .......... .......... .......... 69% 331M 0s\n",
" 20450K .......... .......... .......... .......... .......... 69% 327M 0s\n",
" 20500K .......... .......... .......... .......... .......... 69% 357M 0s\n",
" 20550K .......... .......... .......... .......... .......... 69% 275M 0s\n",
" 20600K .......... .......... .......... .......... .......... 70% 4.03M 0s\n",
" 20650K .......... .......... .......... .......... .......... 70% 241M 0s\n",
" 20700K .......... .......... .......... .......... .......... 70% 407M 0s\n",
" 20750K .......... .......... .......... .......... .......... 70% 267M 0s\n",
" 20800K .......... .......... .......... .......... .......... 70% 288M 0s\n",
" 20850K .......... .......... .......... .......... .......... 70% 4.10M 0s\n",
" 20900K .......... .......... .......... .......... .......... 71% 228M 0s\n",
" 20950K .......... .......... .......... .......... .......... 71% 272M 0s\n",
" 21000K .......... .......... .......... .......... .......... 71% 699M 0s\n",
" 21050K .......... .......... .......... .......... .......... 71% 333M 0s\n",
" 21100K .......... .......... .......... .......... .......... 71% 3.70M 0s\n",
" 21150K .......... .......... .......... .......... .......... 72% 215M 0s\n",
" 21200K .......... .......... .......... .......... .......... 72% 608M 0s\n",
" 21250K .......... .......... .......... .......... .......... 72% 157M 0s\n",
" 21300K .......... .......... .......... .......... .......... 72% 269M 0s\n",
" 21350K .......... .......... .......... .......... .......... 72% 3.87M 0s\n",
" 21400K .......... .......... .......... .......... .......... 72% 347M 0s\n",
" 21450K .......... .......... .......... .......... .......... 73% 268M 0s\n",
" 21500K .......... .......... .......... .......... .......... 73% 344M 0s\n",
" 21550K .......... .......... .......... .......... .......... 73% 126M 0s\n",
" 21600K .......... .......... .......... .......... .......... 73% 3.01M 0s\n",
" 21650K .......... .......... .......... .......... .......... 73% 255M 0s\n",
" 21700K .......... .......... .......... .......... .......... 73% 301M 0s\n",
" 21750K .......... .......... .......... .......... .......... 74% 245M 0s\n",
" 21800K .......... .......... .......... .......... .......... 74% 266M 0s\n",
" 21850K .......... .......... .......... .......... .......... 74% 163M 0s\n",
" 21900K .......... .......... .......... .......... .......... 74% 3.87M 0s\n",
" 21950K .......... .......... .......... .......... .......... 74% 212M 0s\n",
" 22000K .......... .......... .......... .......... .......... 74% 250M 0s\n",
" 22050K .......... .......... .......... .......... .......... 75% 188M 0s\n",
" 22100K .......... .......... .......... .......... .......... 75% 280M 0s\n",
" 22150K .......... .......... .......... .......... .......... 75% 3.84M 0s\n",
" 22200K .......... .......... .......... .......... .......... 75% 208M 0s\n",
" 22250K .......... .......... .......... .......... .......... 75% 313M 0s\n",
" 22300K .......... .......... .......... .......... .......... 75% 352M 0s\n",
" 22350K .......... .......... .......... .......... .......... 76% 457M 0s\n",
" 22400K .......... .......... .......... .......... .......... 76% 2.54M 0s\n",
" 22450K .......... .......... .......... .......... .......... 76% 113M 0s\n",
" 22500K .......... .......... .......... .......... .......... 76% 218M 0s\n",
" 22550K .......... .......... .......... .......... .......... 76% 300M 0s\n",
" 22600K .......... .......... .......... .......... .......... 76% 177M 0s\n",
" 22650K .......... .......... .......... .......... .......... 77% 2.89M 0s\n",
" 22700K .......... .......... .......... .......... .......... 77% 155M 0s\n",
" 22750K .......... .......... .......... .......... .......... 77% 159M 0s\n",
" 22800K .......... .......... .......... .......... .......... 77% 325M 0s\n",
" 22850K .......... .......... .......... .......... .......... 77% 158M 0s\n",
" 22900K .......... .......... .......... .......... .......... 77% 2.82M 0s\n",
" 22950K .......... .......... .......... .......... .......... 78% 161M 0s\n",
" 23000K .......... .......... .......... .......... .......... 78% 173M 0s\n",
" 23050K .......... .......... .......... .......... .......... 78% 315M 0s\n",
" 23100K .......... .......... .......... .......... .......... 78% 187M 0s\n",
" 23150K .......... .......... .......... .......... .......... 78% 1.17M 0s\n",
" 23200K .......... .......... .......... .......... .......... 78% 137M 0s\n",
" 23250K .......... .......... .......... .......... .......... 79% 319M 0s\n",
" 23300K .......... .......... .......... .......... .......... 79% 186M 0s\n",
" 23350K .......... .......... .......... .......... .......... 79% 188M 0s\n",
" 23400K .......... .......... .......... .......... .......... 79% 1.97M 0s\n",
" 23450K .......... .......... .......... .......... .......... 79% 184M 0s\n",
" 23500K .......... .......... .......... .......... .......... 79% 282M 0s\n",
" 23550K .......... .......... .......... .......... .......... 80% 154M 0s\n",
" 23600K .......... .......... .......... .......... .......... 80% 177M 0s\n",
" 23650K .......... .......... .......... .......... .......... 80% 2.02M 0s\n",
" 23700K .......... .......... .......... .......... .......... 80% 303M 0s\n",
" 23750K .......... .......... .......... .......... .......... 80% 293M 0s\n",
" 23800K .......... .......... .......... .......... .......... 81% 328M 0s\n",
" 23850K .......... .......... .......... .......... .......... 81% 301M 0s\n",
" 23900K .......... .......... .......... .......... .......... 81% 258M 0s\n",
" 23950K .......... .......... .......... .......... .......... 81% 1.95M 0s\n",
" 24000K .......... .......... .......... .......... .......... 81% 286M 0s\n",
" 24050K .......... .......... .......... .......... .......... 81% 373M 0s\n",
" 24100K .......... .......... .......... .......... .......... 82% 339M 0s\n",
" 24150K .......... .......... .......... .......... .......... 82% 228M 0s\n",
" 24200K .......... .......... .......... .......... .......... 82% 2.34M 0s\n",
" 24250K .......... .......... .......... .......... .......... 82% 261M 0s\n",
" 24300K .......... .......... .......... .......... .......... 82% 334M 0s\n",
" 24350K .......... .......... .......... .......... .......... 82% 317M 0s\n",
" 24400K .......... .......... .......... .......... .......... 83% 266M 0s\n",
" 24450K .......... .......... .......... .......... .......... 83% 2.12M 0s\n",
" 24500K .......... .......... .......... .......... .......... 83% 291M 0s\n",
" 24550K .......... .......... .......... .......... .......... 83% 288M 0s\n",
" 24600K .......... .......... .......... .......... .......... 83% 330M 0s\n",
" 24650K .......... .......... .......... .......... .......... 83% 254M 0s\n",
" 24700K .......... .......... .......... .......... .......... 84% 2.33M 0s\n",
" 24750K .......... .......... .......... .......... .......... 84% 218M 0s\n",
" 24800K .......... .......... .......... .......... .......... 84% 384M 0s\n",
" 24850K .......... .......... .......... .......... .......... 84% 366M 0s\n",
" 24900K .......... .......... .......... .......... .......... 84% 270M 0s\n",
" 24950K .......... .......... .......... .......... .......... 84% 2.13M 0s\n",
" 25000K .......... .......... .......... .......... .......... 85% 213M 0s\n",
" 25050K .......... .......... .......... .......... .......... 85% 209M 0s\n",
" 25100K .......... .......... .......... .......... .......... 85% 360M 0s\n",
" 25150K .......... .......... .......... .......... .......... 85% 210M 0s\n",
" 25200K .......... .......... .......... .......... .......... 85% 2.17M 0s\n",
" 25250K .......... .......... .......... .......... .......... 85% 320M 0s\n",
" 25300K .......... .......... .......... .......... .......... 86% 92.9M 0s\n",
" 25350K .......... .......... .......... .......... .......... 86% 320M 0s\n",
" 25400K .......... .......... .......... .......... .......... 86% 286M 0s\n",
" 25450K .......... .......... .......... .......... .......... 86% 2.23M 0s\n",
" 25500K .......... .......... .......... .......... .......... 86% 182M 0s\n",
" 25550K .......... .......... .......... .......... .......... 86% 307M 0s\n",
" 25600K .......... .......... .......... .......... .......... 87% 279M 0s\n",
" 25650K .......... .......... .......... .......... .......... 87% 280M 0s\n",
" 25700K .......... .......... .......... .......... .......... 87% 2.24M 0s\n",
" 25750K .......... .......... .......... .......... .......... 87% 178M 0s\n",
" 25800K .......... .......... .......... .......... .......... 87% 302M 0s\n",
" 25850K .......... .......... .......... .......... .......... 87% 197M 0s\n",
" 25900K .......... .......... .......... .......... .......... 88% 247M 0s\n",
" 25950K .......... .......... .......... .......... .......... 88% 2.41M 0s\n",
" 26000K .......... .......... .......... .......... .......... 88% 321M 0s\n",
" 26050K .......... .......... .......... .......... .......... 88% 170M 0s\n",
" 26100K .......... .......... .......... .......... .......... 88% 189M 0s\n",
" 26150K .......... .......... .......... .......... .......... 88% 188M 0s\n",
" 26200K .......... .......... .......... .......... .......... 89% 2.27M 0s\n",
" 26250K .......... .......... .......... .......... .......... 89% 280M 0s\n",
" 26300K .......... .......... .......... .......... .......... 89% 299M 0s\n",
" 26350K .......... .......... .......... .......... .......... 89% 279M 0s\n",
" 26400K .......... .......... .......... .......... .......... 89% 253M 0s\n",
" 26450K .......... .......... .......... .......... .......... 90% 191M 0s\n",
" 26500K .......... .......... .......... .......... .......... 90% 1.92M 0s\n",
" 26550K .......... .......... .......... .......... .......... 90% 246M 0s\n",
" 26600K .......... .......... .......... .......... .......... 90% 336M 0s\n",
" 26650K .......... .......... .......... .......... .......... 90% 243M 0s\n",
" 26700K .......... .......... .......... .......... .......... 90% 280M 0s\n",
" 26750K .......... .......... .......... .......... .......... 91% 1.68M 0s\n",
" 26800K .......... .......... .......... .......... .......... 91% 321M 0s\n",
" 26850K .......... .......... .......... .......... .......... 91% 380M 0s\n",
" 26900K .......... .......... .......... .......... .......... 91% 267M 0s\n",
" 26950K .......... .......... .......... .......... .......... 91% 298M 0s\n",
" 27000K .......... .......... .......... .......... .......... 91% 1.67M 0s\n",
" 27050K .......... .......... .......... .......... .......... 92% 301M 0s\n",
" 27100K .......... .......... .......... .......... .......... 92% 346M 0s\n",
" 27150K .......... .......... .......... .......... .......... 92% 251M 0s\n",
" 27200K .......... .......... .......... .......... .......... 92% 278M 0s\n",
" 27250K .......... .......... .......... .......... .......... 92% 1.71M 0s\n",
" 27300K .......... .......... .......... .......... .......... 92% 361M 0s\n",
" 27350K .......... .......... .......... .......... .......... 93% 338M 0s\n",
" 27400K .......... .......... .......... .......... .......... 93% 313M 0s\n",
" 27450K .......... .......... .......... .......... .......... 93% 340M 0s\n",
" 27500K .......... .......... .......... .......... .......... 93% 1.84M 0s\n",
" 27550K .......... .......... .......... .......... .......... 93% 173M 0s\n",
" 27600K .......... .......... .......... .......... .......... 93% 418M 0s\n",
" 27650K .......... .......... .......... .......... .......... 94% 166M 0s\n",
" 27700K .......... .......... .......... .......... .......... 94% 188M 0s\n",
" 27750K .......... .......... .......... .......... .......... 94% 1.58M 0s\n",
" 27800K .......... .......... .......... .......... .......... 94% 312M 0s\n",
" 27850K .......... .......... .......... .......... .......... 94% 289M 0s\n",
" 27900K .......... .......... .......... .......... .......... 94% 330M 0s\n",
" 27950K .......... .......... .......... .......... .......... 95% 242M 0s\n",
" 28000K .......... .......... .......... .......... .......... 95% 1.32M 0s\n",
" 28050K .......... .......... .......... .......... .......... 95% 363M 0s\n",
" 28100K .......... .......... .......... .......... .......... 95% 167M 0s\n",
" 28150K .......... .......... .......... .......... .......... 95% 194M 0s\n",
" 28200K .......... .......... .......... .......... .......... 95% 159M 0s\n",
" 28250K .......... .......... .......... .......... .......... 96% 1.44M 0s\n",
" 28300K .......... .......... .......... .......... .......... 96% 258M 0s\n",
" 28350K .......... .......... .......... .......... .......... 96% 179M 0s\n",
" 28400K .......... .......... .......... .......... .......... 96% 323M 0s\n",
" 28450K .......... .......... .......... .......... .......... 96% 317M 0s\n",
" 28500K .......... .......... .......... .......... .......... 96% 307M 0s\n",
" 28550K .......... .......... .......... .......... .......... 97% 1.70M 0s\n",
" 28600K .......... .......... .......... .......... .......... 97% 155M 0s\n",
" 28650K .......... .......... .......... .......... .......... 97% 325M 0s\n",
" 28700K .......... .......... .......... .......... .......... 97% 313M 0s\n",
" 28750K .......... .......... .......... .......... .......... 97% 238M 0s\n",
" 28800K .......... .......... .......... .......... .......... 97% 1.74M 0s\n",
" 28850K .......... .......... .......... .......... .......... 98% 327M 0s\n",
" 28900K .......... .......... .......... .......... .......... 98% 372M 0s\n",
" 28950K .......... .......... .......... .......... .......... 98% 339M 0s\n",
" 29000K .......... .......... .......... .......... .......... 98% 333M 0s\n",
" 29050K .......... .......... .......... .......... .......... 98% 1.72M 0s\n",
" 29100K .......... .......... .......... .......... .......... 99% 141M 0s\n",
" 29150K .......... .......... .......... .......... .......... 99% 265M 0s\n",
" 29200K .......... .......... .......... .......... .......... 99% 204M 0s\n",
" 29250K .......... .......... .......... .......... .......... 99% 194M 0s\n",
" 29300K .......... .......... .......... .......... .......... 99% 1.57M 0s\n",
" 29350K .......... .......... .......... .......... .......... 99% 287M 0s\n",
" 29400K .......... .......... .......... .......... 100% 381M=1.7s\n",
"\n",
"2023-11-19 08:40:09 (16.7 MB/s) - written to stdout [30146890/30146890]\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!ls /usr/local/lib/mecab/dic"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "snGYIi08o2l0",
"outputId": "f300ef7a-239c-4bae-cdb3-b60b127d599b"
},
"execution_count": 5,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"jumandic\n"
]
}
]
},
{
"cell_type": "markdown",
"source": [
"### J.DepP のインストール\n",
"\n",
"`--enable-standalone` を指定することで テキストから直接結果を出力可能\n",
"\n",
"指定しないと 「分かち書き機能なし」と同様 mecab の結果を入力に渡す設定になる。"
],
"metadata": {
"id": "qTJH0oYitFQT"
}
},
{
"cell_type": "code",
"source": [
"!rm -r /content/jdepp-2022-03-18"
],
"metadata": {
"id": "lYVQ_kSkvGAc"
},
"execution_count": 6,
"outputs": []
},
{
"cell_type": "code",
"source": [
"%%bash\n",
"wget https://www.tkl.iis.u-tokyo.ac.jp/~ynaga/jdepp/jdepp-2022-03-18.tar.gz\n",
"tar zxvf jdepp-2022-03-18.tar.gz\n",
"cd ./jdepp-2022-03-18\n",
"./configure --enable-standalone CXX=/usr/bin/clang++\n",
"make model\n",
"make install"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "x2hj63xXl1yV",
"outputId": "041e8315-8601-45a6-a261-14601e128764"
},
"execution_count": 11,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"jdepp-2022-03-18/\n",
"jdepp-2022-03-18/install-sh\n",
"jdepp-2022-03-18/configure.ac\n",
"jdepp-2022-03-18/tools/\n",
"jdepp-2022-03-18/LGPL\n",
"jdepp-2022-03-18/INSTALL\n",
"jdepp-2022-03-18/swig/\n",
"jdepp-2022-03-18/configure\n",
"jdepp-2022-03-18/ChangeLog\n",
"jdepp-2022-03-18/AUTHORS\n",
"jdepp-2022-03-18/config.h.in\n",
"jdepp-2022-03-18/BSD\n",
"jdepp-2022-03-18/depcomp\n",
"jdepp-2022-03-18/missing\n",
"jdepp-2022-03-18/README\n",
"jdepp-2022-03-18/Makefile.am\n",
"jdepp-2022-03-18/COPYING\n",
"jdepp-2022-03-18/compile\n",
"jdepp-2022-03-18/NEWS\n",
"jdepp-2022-03-18/GPL\n",
"jdepp-2022-03-18/THANKS\n",
"jdepp-2022-03-18/Makefile.in\n",
"jdepp-2022-03-18/aclocal.m4\n",
"jdepp-2022-03-18/src/\n",
"jdepp-2022-03-18/src/jdepp.cc\n",
"jdepp-2022-03-18/src/linear.h\n",
"jdepp-2022-03-18/src/pecco.h\n",
"jdepp-2022-03-18/src/Makefile.am\n",
"jdepp-2022-03-18/src/timer.h\n",
"jdepp-2022-03-18/src/pa.h\n",
"jdepp-2022-03-18/src/pdep.h\n",
"jdepp-2022-03-18/src/timer.cc\n",
"jdepp-2022-03-18/src/linear.cc\n",
"jdepp-2022-03-18/src/classify.cc\n",
"jdepp-2022-03-18/src/kernel.h\n",
"jdepp-2022-03-18/src/pdep.cc\n",
"jdepp-2022-03-18/src/cedar.h\n",
"jdepp-2022-03-18/src/classify.h\n",
"jdepp-2022-03-18/src/Makefile.in\n",
"jdepp-2022-03-18/src/typedef.h\n",
"jdepp-2022-03-18/src/kernel.cc\n",
"jdepp-2022-03-18/swig/jdepp.i\n",
"jdepp-2022-03-18/swig/python/\n",
"jdepp-2022-03-18/swig/Makefile\n",
"jdepp-2022-03-18/swig/perl/\n",
"jdepp-2022-03-18/swig/README\n",
"jdepp-2022-03-18/swig/lua/\n",
"jdepp-2022-03-18/swig/ruby/\n",
"jdepp-2022-03-18/swig/ruby/test.rb\n",
"jdepp-2022-03-18/swig/ruby/extconf.rb\n",
"jdepp-2022-03-18/swig/lua/Makefile\n",
"jdepp-2022-03-18/swig/lua/test.lua\n",
"jdepp-2022-03-18/swig/perl/test.pl\n",
"jdepp-2022-03-18/swig/perl/Makefile.PL\n",
"jdepp-2022-03-18/swig/python/test.py\n",
"jdepp-2022-03-18/swig/python/setup.py\n",
"jdepp-2022-03-18/tools/to_tree.py\n",
"jdepp-2022-03-18/tools/knbc2kyoto.py\n",
"jdepp-2022-03-18/tools/Makefile.am\n",
"jdepp-2022-03-18/tools/to_chunk.py\n",
"jdepp-2022-03-18/tools/eval.py\n",
"jdepp-2022-03-18/tools/replace_pos.py\n",
"jdepp-2022-03-18/tools/Makefile.in\n",
"jdepp-2022-03-18/tools/conll2kyoto.py\n",
"jdepp-2022-03-18/tools/to_sent.py\n",
"checking for a BSD-compatible install... /usr/bin/install -c\n",
"checking whether build environment is sane... yes\n",
"checking for a race-free mkdir -p... /usr/bin/mkdir -p\n",
"checking for gawk... no\n",
"checking for mawk... mawk\n",
"checking whether make sets $(MAKE)... yes\n",
"checking whether make supports nested variables... yes\n",
"checking whether the C++ compiler works... yes\n",
"checking for C++ compiler default output file name... a.out\n",
"checking for suffix of executables... \n",
"checking whether we are cross compiling... no\n",
"checking for suffix of object files... o\n",
"checking whether the compiler supports GNU C++... yes\n",
"checking whether /usr/bin/clang++ accepts -g... yes\n",
"checking for /usr/bin/clang++ option to enable C++11 features... none needed\n",
"checking whether make supports the include directive... yes (GNU style)\n",
"checking dependency style of /usr/bin/clang++... gcc3\n",
"checking for gcc... gcc\n",
"checking whether the compiler supports GNU C... yes\n",
"checking whether gcc accepts -g... yes\n",
"checking for gcc option to enable C11 features... none needed\n",
"checking whether gcc understands -c and -o together... yes\n",
"checking dependency style of gcc... gcc3\n",
"checking for gawk... (cached) mawk\n",
"checking whether ln -s works... yes\n",
"checking for stdio.h... yes\n",
"checking for stdlib.h... yes\n",
"checking for string.h... yes\n",
"checking for inttypes.h... yes\n",
"checking for stdint.h... yes\n",
"checking for strings.h... yes\n",
"checking for sys/stat.h... yes\n",
"checking for sys/types.h... yes\n",
"checking for unistd.h... yes\n",
"checking for fcntl.h... yes\n",
"checking for stdint.h... (cached) yes\n",
"checking for sys/time.h... yes\n",
"checking for unistd.h... (cached) yes\n",
"checking for _Bool... no\n",
"checking for stdbool.h that conforms to C99... yes\n",
"checking for inline... inline\n",
"checking for int64_t... yes\n",
"checking for mode_t... yes\n",
"checking for size_t... yes\n",
"checking for ssize_t... yes\n",
"checking for uint16_t... yes\n",
"checking for uint64_t... yes\n",
"checking for uint8_t... yes\n",
"checking for working strtod... yes\n",
"checking for floor... yes\n",
"checking for gettimeofday... yes\n",
"checking for memchr... yes\n",
"checking for memmove... yes\n",
"checking for memset... yes\n",
"checking for pow... yes\n",
"checking for strstr... yes\n",
"checking for strtol... yes\n",
"checking for strtoul... yes\n",
"checking for curl... /usr/bin/curl\n",
"checking for wget... /usr/bin/wget\n",
"checking for iconv... /usr/bin/iconv\n",
"checking for python3... /usr/bin/python3\n",
"checking for mecab... /usr/local/bin/mecab\n",
"checking for mecab-config... /usr/local/bin/mecab-config\n",
"checking for unordered_map... yes\n",
"checking that generated files are newer than configure... done\n",
"configure: creating ./config.status\n",
"config.status: creating Makefile\n",
"config.status: creating src/Makefile\n",
"config.status: creating tools/Makefile\n",
"config.status: creating config.h\n",
"config.status: executing depfiles commands\n",
"make all-recursive\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18'\n",
"Making all in src\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/src'\n",
"/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -DMECAB_DICT=\\\"/usr/local/lib/mecab/dic/jumandic\\\" -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-classify.o -MD -MP -MF .deps/jdepp-classify.Tpo -c -o jdepp-classify.o `test -f 'classify.cc' || echo './'`classify.cc\n",
"mv -f .deps/jdepp-classify.Tpo .deps/jdepp-classify.Po\n",
"/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -DMECAB_DICT=\\\"/usr/local/lib/mecab/dic/jumandic\\\" -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-pdep.o -MD -MP -MF .deps/jdepp-pdep.Tpo -c -o jdepp-pdep.o `test -f 'pdep.cc' || echo './'`pdep.cc\n",
"mv -f .deps/jdepp-pdep.Tpo .deps/jdepp-pdep.Po\n",
"/usr/bin/clang++ -DHAVE_CONFIG_H -I. -I.. -DMECAB_DICT=\\\"/usr/local/lib/mecab/dic/jumandic\\\" -DJDEPP_DEFAULT_MODEL=\\\"/usr/local/lib/jdepp/model/knbc\\\" -Wall -msse4.2 -m64 -g -O2 -MT jdepp-jdepp.o -MD -MP -MF .deps/jdepp-jdepp.Tpo -c -o jdepp-jdepp.o `test -f 'jdepp.cc' || echo './'`jdepp.cc\n",
"mv -f .deps/jdepp-jdepp.Tpo .deps/jdepp-jdepp.Po\n",
"/usr/bin/clang++ -Wall -msse4.2 -m64 -g -O2 -lmecab -o jdepp jdepp-classify.o jdepp-pdep.o jdepp-jdepp.o timer.o kernel.o \n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/src'\n",
"Making all in tools\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/tools'\n",
"make[2]: Nothing to be done for 'all'.\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/tools'\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18'\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18'\n",
"/usr/bin/mkdir -p model/knbc\n",
"rm -f model/knbc/*\n",
"find /content/jdepp-2022-03-18/KNBC_v1.0_090925/corpus1 -type f -name \"KN*\" | LC_ALL=C sort | xargs cat | /usr/bin/python3 /content/jdepp-2022-03-18/tools/knbc2kyoto.py KNP | /usr/bin/python3 /content/jdepp-2022-03-18/tools/replace_pos.py /usr/local/bin/mecab -d /usr/local/lib/mecab/dic/jumandic > model/knbc/train.JDP.euc\n",
"Converting corpus into JDP format..\n",
"translate corpus into UTF-8..\n",
"/usr/bin/iconv -f EUC-JP -t UTF-8 model/knbc/train.JDP.euc > model/knbc/train.JDP.utf8\n",
"done.\n",
"Training BUNSETSU CHUNKER..\n",
"src/jdepp -t 0 -I 1 -c model/knbc/train.JDP.utf8 -m model/knbc -- -t 1 -d 2 -c 0.0008 -i 40 -p\n",
"echo '' | src/jdepp -t 1 -I 1 -c model/knbc/train.JDP.utf8 -m model/knbc -- -t 1 -d 2 -c 0.0008 -i 40 -p -- -s 0.02 -i 5\n",
"done.\n",
"Training and testing DEPENDENCY PARSER..\n",
"src/jdepp -t 0 -I 2 -c model/knbc/train.JDP.utf8 -m model/knbc -- -t 1 -d 2 -c 0.00005 -i 40 -p\n",
"echo '' | src/jdepp -t 1 -I 2 -c model/knbc/train.JDP.utf8 -m model/knbc -- -t 1 -d 2 -c 0.00005 -i 40 -p -- -- -s 0.005 -i 5\n",
"done.\n",
"Generating feature strings in EUC-JP\n",
"done.\n",
"Making install in src\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18/src'\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/src'\n",
" /usr/bin/mkdir -p '/usr/local/bin'\n",
" /usr/bin/install -c jdepp '/usr/local/bin'\n",
"make[2]: Nothing to be done for 'install-data-am'.\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/src'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18/src'\n",
"Making install in tools\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18/tools'\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18/tools'\n",
" /usr/bin/mkdir -p '/usr/local/bin'\n",
" /usr/bin/install -c to_tree.py to_chunk.py '/usr/local/bin'\n",
"make[2]: Nothing to be done for 'install-data-am'.\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18/tools'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18/tools'\n",
"make[1]: Entering directory '/content/jdepp-2022-03-18'\n",
"make[2]: Entering directory '/content/jdepp-2022-03-18'\n",
"make[2]: Nothing to be done for 'install-exec-am'.\n",
"make install-data-hook\n",
"make[3]: Entering directory '/content/jdepp-2022-03-18'\n",
"Installing knbc model..\n",
"if test -e model/knbc/dic.euc; then \\\n",
"\t/usr/bin/install -c -d /usr/local/lib/jdepp/model/knbc; \\\n",
"\t/usr/bin/install -c -p model/knbc/* /usr/local/lib/jdepp/model/knbc; \\\n",
"echo 'done.'; \\\n",
"fi\n",
"done.\n",
"make[3]: Leaving directory '/content/jdepp-2022-03-18'\n",
"make[2]: Leaving directory '/content/jdepp-2022-03-18'\n",
"make[1]: Leaving directory '/content/jdepp-2022-03-18'\n"
]
},
{
"output_type": "stream",
"name": "stderr",
"text": [
"--2023-11-19 08:45:41-- https://www.tkl.iis.u-tokyo.ac.jp/~ynaga/jdepp/jdepp-2022-03-18.tar.gz\n",
"Resolving www.tkl.iis.u-tokyo.ac.jp (www.tkl.iis.u-tokyo.ac.jp)... 157.82.157.21\n",
"Connecting to www.tkl.iis.u-tokyo.ac.jp (www.tkl.iis.u-tokyo.ac.jp)|157.82.157.21|:443... connected.\n",
"HTTP request sent, awaiting response... 200 OK\n",
"Length: 233956 (228K) [application/x-gzip]\n",
"Saving to: ‘jdepp-2022-03-18.tar.gz.1’\n",
"\n",
" 0K .......... .......... .......... .......... .......... 21% 276K 1s\n",
" 50K .......... .......... .......... .......... .......... 43% 552K 0s\n",
" 100K .......... .......... .......... .......... .......... 65% 555K 0s\n",
" 150K .......... .......... .......... .......... .......... 87% 23.7M 0s\n",
" 200K .......... .......... ........ 100% 28.0M=0.4s\n",
"\n",
"2023-11-19 08:45:43 (626 KB/s) - ‘jdepp-2022-03-18.tar.gz.1’ saved [233956/233956]\n",
"\n",
"In file included from classify.cc:4:\n",
"In file included from ./classify.h:20:\n",
"In file included from ./typedef.h:33:\n",
"./cedar.h:71:21: warning: unused typedef 'value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index' [-Wunused-local-typedef]\n",
" value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" ^\n",
"1 warning generated.\n",
"pdep.cc:674:67: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]\n",
" case '#': if (output) _s->setHeader (line, read); break;\n",
" ^\n",
"pdep.cc:672:13: note: previous statement is here\n",
" else\n",
" ^\n",
"In file included from pdep.cc:4:\n",
"In file included from ./pdep.h:31:\n",
"In file included from ./typedef.h:33:\n",
"./cedar.h:71:21: warning: unused typedef 'value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index' [-Wunused-local-typedef]\n",
" value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" ^\n",
"2 warnings generated.\n",
"In file included from jdepp.cc:4:\n",
"In file included from ./pdep.h:31:\n",
"In file included from ./typedef.h:33:\n",
"./cedar.h:71:21: warning: unused typedef 'value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index' [-Wunused-local-typedef]\n",
" value_type_is_not_supported___maintain_a_value_array_by_yourself_and_store_its_index\n",
" ^\n",
"1 warning generated.\n",
"fail to convert: # S-ID:KN257_Gourmet_1-1-5-01 KNP:2008/02/25 SCORE:-42.35019 MOD:2008/11/18\n",
"(success, failed) = (4185, 0)\n",
"\rlearn: 1000 sent. processed\rlearn: 2000 sent. processed\rlearn: 3000 sent. processed\rlearn: 4000 sent. processed\rlearn: 4185 sent. processed.\n",
"\rPA1 iter=1 #ex=64395 #SV=8171; \rPA1 iter=2 #ex=128790 #SV=8814; \rPA1 iter=3 #ex=193185 #SV=9179; \rPA1 iter=4 #ex=257580 #SV=9434; \rPA1 iter=5 #ex=321975 #SV=9628; \rPA1 iter=6 #ex=386370 #SV=9809; \rPA1 iter=7 #ex=450765 #SV=9967; \rPA1 iter=8 #ex=515160 #SV=10090; \rPA1 iter=9 #ex=579555 #SV=10210; \rPA1 iter=10 #ex=643950 #SV=10341; \rPA1 iter=11 #ex=708345 #SV=10462; \rPA1 iter=12 #ex=772740 #SV=10574; \rPA1 iter=13 #ex=837135 #SV=10663; \rPA1 iter=14 #ex=901530 #SV=10749; \rPA1 iter=15 #ex=965925 #SV=10844; \rPA1 iter=16 #ex=1030320 #SV=10920; \rPA1 iter=17 #ex=1094715 #SV=11000; \rPA1 iter=18 #ex=1159110 #SV=11075; \rPA1 iter=19 #ex=1223505 #SV=11152; \rPA1 iter=20 #ex=1287900 #SV=11228; \rPA1 iter=21 #ex=1352295 #SV=11288; \rPA1 iter=22 #ex=1416690 #SV=11353; \rPA1 iter=23 #ex=1481085 #SV=11414; \rPA1 iter=24 #ex=1545480 #SV=11475; \rPA1 iter=25 #ex=1609875 #SV=11540; \rPA1 iter=26 #ex=1674270 #SV=11594; \rPA1 iter=27 #ex=1738665 #SV=11639; \rPA1 iter=28 #ex=1803060 #SV=11682; \rPA1 iter=29 #ex=1867455 #SV=11728; \rPA1 iter=30 #ex=1931850 #SV=11776; \rPA1 iter=31 #ex=1996245 #SV=11804; \rPA1 iter=32 #ex=2060640 #SV=11831; \rPA1 iter=33 #ex=2125035 #SV=11855; \rPA1 iter=34 #ex=2189430 #SV=11889; \rPA1 iter=35 #ex=2253825 #SV=11921; \rPA1 iter=36 #ex=2318220 #SV=11946; \rPA1 iter=37 #ex=2382615 #SV=11978; \rPA1 iter=38 #ex=2447010 #SV=12005; \rPA1 iter=39 #ex=2511405 #SV=12020; \rPA1 iter=40 #ex=2575800 #SV=12044; saving..done.\n",
"\rcache: 1000 sent. processed\rcache: 2000 sent. processed\rcache: 3000 sent. processed\rcache: 4000 sent. processed\rcache: 4185 sent. processed.\n",
"J.DepP profiler:\n",
"io : 0.0008 ms./trial (6.34067576/8394)\n",
"dict : 0.2094 ms.\n",
"preproc : 0.0033 ms./sent. (13.71416007/4185)\n",
"chunk : 0.0297 ms./sent. (124.39873215/4185)\n",
"\n",
"(input: STDIN [-I 1])\n",
"jdepp: found a tagged sentence that is not EOS-terminated.\n",
"\n",
"J.DepP profiler:\n",
"io : 0.0022 ms./trial (0.00442201/2)\n",
"dict : 0.2227 ms.\n",
"\n",
"\rlearn: 1000 sent. processed\rlearn: 2000 sent. processed\rlearn: 3000 sent. processed\rlearn: 4000 sent. processed\rlearn: 4185 sent. processed.\n",
"shrink splitN: 2^32-1 (= 4294967295) => 2^14-1 (= 16383)\n",
"shrink splitN: 2^14-1 (= 16383) => 2^13-1 (= 8191)\n",
"\rPA1 iter=1 #ex=30095 #SV=15097; \rPA1 iter=2 #ex=60190 #SV=15352; \rPA1 iter=3 #ex=90285 #SV=15547; \rPA1 iter=4 #ex=120380 #SV=15669; \rPA1 iter=5 #ex=150475 #SV=15777; \rPA1 iter=6 #ex=180570 #SV=15856; \rPA1 iter=7 #ex=210665 #SV=15914; \rPA1 iter=8 #ex=240760 #SV=15965; \rPA1 iter=9 #ex=270855 #SV=16002; \rPA1 iter=10 #ex=300950 #SV=16051; \rPA1 iter=11 #ex=331045 #SV=16095; \rPA1 iter=12 #ex=361140 #SV=16134; \rPA1 iter=13 #ex=391235 #SV=16174; \rPA1 iter=14 #ex=421330 #SV=16214; \rPA1 iter=15 #ex=451425 #SV=16238; \rPA1 iter=16 #ex=481520 #SV=16268; \rPA1 iter=17 #ex=511615 #SV=16302; \rPA1 iter=18 #ex=541710 #SV=16321; \rPA1 iter=19 #ex=571805 #SV=16352; \rPA1 iter=20 #ex=601900 #SV=16375; \rPA1 iter=21 #ex=631995 #SV=16402; \rPA1 iter=22 #ex=662090 #SV=16439; \rPA1 iter=23 #ex=692185 #SV=16463; \rPA1 iter=24 #ex=722280 #SV=16485; \rPA1 iter=25 #ex=752375 #SV=16506; \rPA1 iter=26 #ex=782470 #SV=16535; \rPA1 iter=27 #ex=812565 #SV=16561; \rPA1 iter=28 #ex=842660 #SV=16583; \rPA1 iter=29 #ex=872755 #SV=16603; \rPA1 iter=30 #ex=902850 #SV=16631; \rPA1 iter=31 #ex=932945 #SV=16653; \rPA1 iter=32 #ex=963040 #SV=16678; \rPA1 iter=33 #ex=993135 #SV=16706; \rPA1 iter=34 #ex=1023230 #SV=16725; \rPA1 iter=35 #ex=1053325 #SV=16747; \rPA1 iter=36 #ex=1083420 #SV=16769; \rPA1 iter=37 #ex=1113515 #SV=16797; \rPA1 iter=38 #ex=1143610 #SV=16817; \rPA1 iter=39 #ex=1173705 #SV=16831; \rPA1 iter=40 #ex=1203800 #SV=16844; saving..done.\n",
"\rcache: 1000 sent. processed\rcache: 2000 sent. processed\rcache: 3000 sent. processed\rcache: 4000 sent. processed\rcache: 4185 sent. processed.\n",
"J.DepP profiler:\n",
"io : 0.0011 ms./trial (9.00570714/8394)\n",
"dict : 0.2461 ms.\n",
"preproc : 0.0061 ms./sent. (25.41741428/4185)\n",
"depnd : 0.0660 ms./sent. (276.22344975/4185)\n",
"\n",
"(input: STDIN [-I 2])\n",
"jdepp: found a tagged sentence that is not EOS-terminated.\n",
"\n",
"J.DepP profiler:\n",
"io : 0.0018 ms./trial (0.00355343/2)\n",
"dict : 0.2671 ms.\n",
"\n"
]
}
]
},
{
"cell_type": "code",
"source": [
"!jdepp -h"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "5KnR6Rr1zEg-",
"outputId": "4c6dbf93-bc9e-43d2-a576-96e212f6209c"
},
"execution_count": 13,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"J.DepP - Japanese Dependency Parser\n",
"Copyright (c) 2008-2015 Naoki Yoshinaga\n",
"\n",
"Usage: jdepp [options] -- [learner options] -- [chunker classifier options] -- [parser classifier options] < test\n",
"\n",
"test test file\n",
"\n",
"Optional parameters in training / testing:\n",
" -t, --type=TYPE select running mode of J.DepP\n",
" 0 - learn\n",
" * 1 - parse\n",
" 2 - both\n",
" 3 - cache\n",
" -e, --encoding=TYPE select encoding of input\n",
" * 0 - UTF-8\n",
" 1 - EUC-JP\n",
" -i, --ignore=STR ignore input line starting with STR\n",
" -c, --corpus=FILE training corpus in JDEPP format ('train.JDP')\n",
" -m, --model-dir=DIR model directory ('/usr/local/lib/jdepp/model/knbc')\n",
" -p, --parser=TYPE select parsing algorithm\n",
" * 0 - shift reduce\n",
" 1 - cascaded chunking\n",
" 2 - backward\n",
" 3 - tournament\n",
" -I, --input-format=TYPE select type of input format\n",
" * 0 - RAW sentences\n",
" 1 - + POS / CHUNK annotation\n",
" 2 - + DEPENDENCY annotation\n",
"\n",
"Optional parameters in training:\n",
" -l, --learner=TYPE select type of learning library\n",
" * 0 - OPAL\n",
" 1 - SVM (disabled)\n",
" 2 - MaxEnt (disabled)\n",
" -n, --max-sent=INT max. # processing sentences (0: all)\n",
"\n",
"Optional parameters in testing:\n",
" -d, --mecab-dic=DIR use MeCab dictionary ('/usr/local/lib/mecab/dic/jumandic')\n",
"\n",
"Misc.:\n",
" -v, --verbose=INT verbosity level (0)\n",
" -h, --help show this help and exit\n"
]
}
]
},
{
"cell_type": "markdown",
"source": [
"### 入力ファイル形式\n",
"\n",
"テキストをそのまま入れれば良い"
],
"metadata": {
"id": "4qeb2L2fy88C"
}
},
{
"cell_type": "code",
"source": [
"!echo \"クロールで泳いでいる少女を見た\" |jdepp"
],
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "LL13fPy_mNZw",
"outputId": "ef3b6dd0-6a2e-4ccc-ba87-ea3e5f9844cd"
},
"execution_count": 12,
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"(input: STDIN [-I 0])\n",
"* 0 1D\n",
"クロール\t名詞,普通名詞,*,*,クロール,くろーる,代表表記:クロール/くろーる カテゴリ:抽象物 ドメイン:スポーツ\n",
"で\t助詞,格助詞,*,*,で,で,連語\n",
"* 1 2D\n",
"泳いで\t動詞,*,子音動詞ガ行,タ系連用テ形,泳ぐ,およいで,代表表記:泳ぐ/およぐ\n",
"いる\t接尾辞,動詞性接尾辞,母音動詞,基本形,いる,いる,連語\n",
"* 2 3D\n",
"少女\t名詞,普通名詞,*,*,少女,しょうじょ,代表表記:少女/しょうじょ カテゴリ:人\n",
"を\t助詞,格助詞,*,*,を,を,連語\n",
"* 3 -1D\n",
"見た\t動詞,*,母音動詞,タ形,見る,みた,代表表記:見る/みる 補文ト 自他動詞:自:見える/みえる\n",
"EOS\n",
"J.DepP profiler:\n",
"io : 0.0145 ms./trial (0.04347704/3)\n",
"dict : 0.3486 ms.\n",
"preproc : 0.4270 ms.\n",
"chunk : 0.0248 ms.\n",
"depnd : 0.0173 ms.\n",
"\n"
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment