Git Product home page Git Product logo

comainu's People

Contributors

skozawa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

miettal

comainu's Issues

形態素解析の辞書を変更する方法について

研究で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

これは何を修正すればよいのでしょうか?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.