C++
MeCabããã«ãã¹ã¬ããã§åããã¦ã¿ããï¼ã¨ãã話ã§ãã ãã«ãã¹ã¬ããã®æ¹æ³ã¨ãã¦ã¯C++11ã®std::threadã使ãã¾ããMeCabããã«ãã¹ã¬ããã§åããæ¹æ³ã«ã¤ãã¦ã¯ä»¥ä¸ã®è¨äºãåèã«ãªãã¾ããã MeCabãC++ãã使ã£ã¦ã¿ã | mwSoft ã¾ãMeCabå ¬å¼ã«ããâ¦
âãã®è¾ºãã®è¨äºãè¦ã¦è²ã ã¨è©¦ããããªã£ãã ãã£ããããã§å種è¨èªããã³ããã¼ã¯ - satosystemsã®æ¥è¨ ãã£ããããã§å種è¨èªããã³ããã¼ã¯ C++ãã¼ã¸ã§ã³ - ãªãGã®æ¥è¨ 以ä¸ã®æ¹æ³ã§ãã£ããããæ°åãè¨ç®ãã¦ã¿ã ç´ ã®é¢æ°(å ã ã®è¨äºã¨ä¸ç·) fibâ¦
Double Arrayã«ããTrieã®ã©ã¤ãã©ãªDartsã®commonPrefixSearché¢æ°ã¯æ¬¡ã®ãããªæ»ãå¤ã¨å¼æ°ã«ãªã£ã¦ãã¾ãã size_t commonPrefixSearch(const key_type *key, T* result, size_t result_len, size_t len = 0, size_t node_pos = 0);ããã§result_lenã¯çµâ¦
ã³ã³ãã¤ã«æ g++ã§ã³ã³ãã¤ã«ããã¨ãã«-lpthreadããªãã¨ãã¡ã std::threadã®å¼æ° åç §æ¸¡ããããã¨ãã«ã¯æ示çã«std::refã§æ¸¡ããªãã¨ãã¡ã
çµè« æ¤ç´¢ããç¨åº¦ã§ã¯æ¹æ³ã¯è¦ã¤ãããªãã£ã 代æ¿æ¡ #include <boost/tr1/unordered_map.hpp>ãã¦std::tr1::unordered_mapã使ãã ããã¨#include <boost/serialization/unordered_map.hpp>ã§ã·ãªã¢ã©ã¤ãºã§ããã</boost/serialization/unordered_map.hpp></boost/tr1/unordered_map.hpp>
unordered_mapã«pairãçªã£è¾¼ãã ãåããªãã¦æ©ãã ãã§ãããèªåã®ä½ã£ãã¯ã©ã¹ã ãã§ãªãpairã¨ãtupleã§ãhashãå®ç¾©ããªãã¨åããªãã¿ããã§ããnamespace stdã«æå®ããæ¹æ³ã¨ããã·ã¥é¢æ°ãunordered_mapã«æ¸¡ãæ¹æ³ã®2種é¡ãããã¿ããã§ãããã¨ãâ¦
Ubuntuã§clang++ 3.2ã使ã£ã¦ããã®ã§ããã<chrono>ãã¤ã³ã¯ã«ã¼ãããã¨å¤§éã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ãåºã¾ããã 解決æ³ãã°ã°ã£ã¦ããã以ä¸ã®ãµã¤ããå¼ã£ãããã¾ããã Clang Developers - #include with Clang 3.1 ã¤ã³ã¯ã«ã¼ããã¦ããtype_traitsãç§ã®å ´åã¯/u</chrono>â¦
Darts: Double ARray Trie System Double Arrayã使ãããã£ãã®ã§ãDartsã使ããã¨ããããµã³ãã«ã³ã¼ããåããªãã¦å°ãã¾ããã g++ã§ãclang++ã§ããã¡ã§ããã ãªãã·ã§ã³ã®éãã¨ããªãã§ãããï¼exactMatchSearchã«æ»ãå¤ã®åãæå®ãããä¸å¿åããâ¦
Linuxã§ã®C/C++ã³ã³ãã¤ã©ã¨ããã°gcc/g++ã§ããããæè¿clang/clang++ã¨ããã³ã³ãã¤ã©ã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ãããããããã¨ãã話ãããè¦ãããã®ã§è©¦ãã¦ã¿ã¾ããã ã¤ã³ã¹ãã¼ã« 主ã«ä»¥ä¸ã®å ¬å¼ãµã¤ãéãã«ããã¾ãã Clang - Getting Started configurâ¦
ãã¶ãæ©è½ãç¥ããªãã ããªã®ãããã¤ãããæ°ãããï¼ ã¨ã©ã¼ã¡ãã»ã¼ã¸ã®æå³ãããããªã ã¨ã©ã¼ã¡ãã»ã¼ã¸ã®è¡çªå·ãæ¸ãééãã¦ãå ´æã¨ããããéã é åã®é·ããsizeofããªãã¨ããããªã æååæä½ã貧弱 ãã³ãã¬ã¼ãã使ãã¨ååããããé·ããªâ¦
ä¸ã¤ã®é åã使ãã®ã¨ï¼vectorãçµã¿åãããã®ã¨boost::multi_arrayã使ãã®ã§ã¯ã©ããä¸çªä½¿ãããããã§ããããï¼
Visual Studio2010 ã«Boostã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ããã®ã§ã¡ã¢ï¼ Download Boost Library Here - BoostProããã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ããã¦å®è¡ï¼ ããããã£ã®VC++ãã£ã¬ã¯ããªâã¤ã³ã¯ã«ã¼ããã£ã¬ã¯ããªã«C:\Program Files\boost\boost_1_46_1ï¼ã©ã¤â¦