StringCharFeatures
ASCII 以外の文字 ("é" など) を含む文字列のリストから将軍を作成する必要があります。
Python 2では、これは機能します:
from modshogun import StringCharFeatures, RAWBYTE
StringCharFeatures([u"abcdé".encode('LATIN-1')], RAWBYTE)
しかし、Python 3 では例外が発生します。
NotImplementedError: Wrong number or type of arguments for overloaded function 'new_StringCharFeatures'.
Possible C/C++ prototypes are:
shogun::CStringFeatures< char >::CStringFeatures()
shogun::CStringFeatures< char >::CStringFeatures(shogun::EAlphabet)
shogun::CStringFeatures< char >::CStringFeatures(shogun::SGStringList< char >,shogun::EAlphabet)
shogun::CStringFeatures< char >::CStringFeatures(shogun::SGStringList< char >,shogun::CAlphabet *)
shogun::CStringFeatures< char >::CStringFeatures(shogun::CAlphabet *)
shogun::CStringFeatures< char >::CStringFeatures(shogun::CStringFeatures< char > const &)
shogun::CStringFeatures< char >::CStringFeatures(shogun::CFile *,shogun::EAlphabet)
shogun::CStringFeatures< char >::CStringFeatures(shogun::CFile *)
それを修正する方法はありますか?