skozawa / comainu Goto Github PK
View Code? Open in Web Editor NEWCOrpus based Morphological Analyzer with INtegrated User dictionary
License: Other
COrpus based Morphological Analyzer with INtegrated User dictionary
License: Other
研究でComainuを使わせていただいているのですが、形態素解析の辞書について、ご質問したいことがあります。
デフォルトではUniDicが使われると思うのですが、neologdなど、他の辞書を形態素解析の段階で簡単に使う方法がもしあれば、教えていただけますか?
東方 Fedora24 を利用して Comainu のインストールをしようとしています。
/script/setup.sh を実行しているのですが、YamCha のインストールの際に、エラーを吐きます。
make all-recursive
make[1]: ディレクトリ '/home/xxx/yamcha-0.33' に入りmます
Making all in src
make[2]: ディレクトリ '/home/xxx/yamcha-0.33/src' に入ります
/bin/sh ../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I..
-O3 -Wno-deprecated -Wall -c -o feature_index.lo feature_index.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.. -O3 -Wno-deprecated -Wall -c feature_index.cpp
-fPIC -DPIC -o .libs/feature_index.o
feature_index.cpp: In member function 'bool
YamCha::FeatureIndex::setFeature(const string&, int)':
feature_index.cpp:150:62: error: no matching function for call to
'make_pair(const int&, const int&)'
feature_set.insert (std::make_pair <int, int>( *rit, *cit ) );
^
In file included from /usr/include/c++/6.2.1/utility:70:0,
from /usr/include/c++/6.2.1/tuple:38,
from /usr/include/c++/6.2.1/functional:55,
from feature_index.cpp:23:
/usr/include/c++/6.2.1/bits/stl_pair.h:425:5: note: candidate: template<class
_T1, class _T2> constexpr std::pair<typename
std::__decay_and_strip<_Tp>::__type, typename
std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^~~~~~~~~
/usr/include/c++/6.2.1/bits/stl_pair.h:425:5: note: template argument
deduction/substitution failed:
feature_index.cpp:150:51: note: cannot convert
'rit.std::_Rb_tree_const_iterator<_Tp>::operator*<int>()' (type 'const int') to
type 'int&&'
feature_set.insert (std::make_pair <int, int>( *rit, *cit ) );
^~~~
feature_index.cpp:154:66: error: no matching function for call to
'make_pair(const int&, const int&)'
bow_feature_set.insert (std::make_pair <int, int>( *rit, *cit ) );
^
In file included from /usr/include/c++/6.2.1/utility:70:0,
from /usr/include/c++/6.2.1/tuple:38,
from /usr/include/c++/6.2.1/functional:55,
from feature_index.cpp:23:
/usr/include/c++/6.2.1/bits/stl_pair.h:425:5: note: candidate: template<class
_T1, class _T2> constexpr std::pair<typename
std::__decay_and_strip<_Tp>::__type, typename
std::__decay_and_strip<_T2>::__type> std::make_pair(_T1&&, _T2&&)
make_pair(_T1&& __x, _T2&& __y)
^~~~~~~~~
/usr/include/c++/6.2.1/bits/stl_pair.h:425:5: note: template argument
deduction/substitution failed:
feature_index.cpp:154:55: note: cannot convert
'rit.std::_Rb_tree_const_iterator<_Tp>::operator*<int>()' (type 'const int') to
type 'int&&'
bow_feature_set.insert (std::make_pair <int, int>( *rit, *cit ) );
^~~~
Makefile:335: ターゲット 'feature_index.lo' のレシピで失敗しました
make[2]: *** [feature_index.lo] エラー 1
make[2]: ディレクトリ '/home/xxx/yamcha-0.33/src' から出ます
Makefile:302: ターゲット 'all-recursive' のレシピで失敗しました
make[1]: *** [all-recursive] エラー 1
make[1]: ディレクトリ '/home/xxx/yamcha-0.33' から出ます
Makefile:200: ターゲット 'all' のレシピで失敗しました
make: *** [all] エラー 2
これは何を修正すればよいのでしょうか?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.