std 42 Concordance.hpp typedef std::pair<std::string, std::string> string_type; std 55 Concordance.hpp bool checkAgent(std::string& agent); std 68 Concordance.hpp std::vector<int> genrev; // 対象ジャンル vector std 87 Concordance.hpp std::string agent; // UserAgent std 88 Concordance.hpp std::string ipadr; // IP Address std 90 Concordance.hpp std::string wparm; // parameter std 135 Concordance.hpp void errorsend(const std::string& emsg); std 13 ConcordanceFunc.cpp bool checkAgent(std::string& agent) std 20 ConcordanceFunc.cpp ver = std::atoi(m.str(1).c_str()); std 21 ConcordanceFunc.cpp std::cerr << "UserAgent: Mac OS X 10." << ver << " Safari\n"; std 48 ConcordanceFunc.cpp void Concordance::errorsend(const std::string& emsg) std 75 ConcordanceFunc.cpp std::cerr << "g12 checked.\n"; std 83 ConcordanceFunc.cpp std::vector<int>::iterator i; std 127 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 0); std 131 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 1); std 135 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 2); std 139 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 3); std 143 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 4); std 147 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 5); std 151 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 6); std 155 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 7); std 159 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 8); std 163 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 9); std 167 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 10); std 171 ConcordanceFunc.cpp std::vector<int>::iterator i = remove(genrev.begin(), genrev.end(), 11); std 178 ConcordanceFunc.cpp cprelen = std::atoi((lenpEdit->text()).toUTF8().c_str()); std 179 ConcordanceFunc.cpp std::cerr << "* Changed Prelength to: " << cprelen << std::endl; std 184 ConcordanceFunc.cpp caftlen = std::atoi((lenaEdit->text()).toUTF8().c_str()); std 185 ConcordanceFunc.cpp std::cerr << "* Changed Aftlength to: " << caftlen << std::endl; std 27 ConcordanceInit.cpp } catch (const std::exception& e) { std 29 ConcordanceInit.cpp std::cerr << "Lemmatizer error: " << e.what() << "\n"; std 54 ConcordanceInit.cpp std::cerr << "- IP Address: " << ipadr << "\n" std 27 ConcordanceKWIC.cpp static const std::string URLbase = "/pushkin/web/"; std 33 ConcordanceKWIC.cpp std::stringstream ss; // 数値変換用ストリングストリーム std 36 ConcordanceKWIC.cpp std::string ldata = (expEdit->text()).toUTF8(); // 元入力 std 37 ConcordanceKWIC.cpp std::string userip = "IP: " + ipadr + " Req: " + ldata; std 41 ConcordanceKWIC.cpp std::string udata = boost::locale::to_upper(ldata); std 58 ConcordanceKWIC.cpp std::vector<std::string> wds; std 66 ConcordanceKWIC.cpp std::vector<query> qrv; // クエリ構造体の vector std 67 ConcordanceKWIC.cpp for (std::vector<std::string>::iterator wi = wds.begin(); std 91 ConcordanceKWIC.cpp std::string msg(num); std 127 ConcordanceKWIC.cpp std::string sm(""); std 153 ConcordanceKWIC.cpp for (std::vector<query>::iterator qit = qrv.begin(); std 157 ConcordanceKWIC.cpp std::string ex(qit->qsrc); std 168 ConcordanceKWIC.cpp std::vector<wordinfo> twdvec; std 189 ConcordanceKWIC.cpp } catch (const std::exception& e) { std 206 ConcordanceKWIC.cpp for (std::vector<wordinfo>::iterator ndit = twdvec.begin(); std 220 ConcordanceKWIC.cpp std::sprintf(wc, "%d", ndit->counter); std 237 ConcordanceKWIC.cpp for (std::vector<offset_ptr<wpos> >::iterator wpi = std 249 ConcordanceKWIC.cpp std::sprintf(wcp, "%d", seq++); std 254 ConcordanceKWIC.cpp std::sprintf(wcp, "%02d:%04d:%06d:%06d", std 259 ConcordanceKWIC.cpp std::string curln, preln, aftln; std 263 ConcordanceKWIC.cpp std::cerr << "* corpus key: " << wcp << " not found.\n"; std 274 ConcordanceKWIC.cpp std::cerr << "* preln is : " << wcp << " not found.\n"; std 283 ConcordanceKWIC.cpp std::string out1, out2; std 294 ConcordanceKWIC.cpp std::sprintf(wcp, "%02d:%04d:%06d", gen, fno, lno); std 295 ConcordanceKWIC.cpp std::string posit(wcp); std 297 ConcordanceKWIC.cpp std::string title; std 298 ConcordanceKWIC.cpp std::sprintf(wcp, "%02d:%04d", gen, fno); std 306 ConcordanceKWIC.cpp std::string s2 = keyc.c_str(); std 312 ConcordanceKWIC.cpp std::sprintf(wcp, "%04d.html#%06d", fno, lid); std 313 ConcordanceKWIC.cpp std::string s3 = "<a href=\"" + URLbase + wcp std 351 ConcordanceKWIC.cpp for (std::vector<int>::iterator gi = genrev.begin(); std 27 ConcordanceMain.cpp std::cerr << "Concordance createApplication called.\n"; std 35 ConcordanceMain.cpp std::map<std::string, std::string> mp; std 38 ConcordanceMain.cpp std::cerr << "Concordance config: " << CONFIG << std::endl; std 41 ConcordanceMain.cpp std::string hc, hd, hl, ha; std 47 ConcordanceMain.cpp std::cerr << "Corpus Shared Memory Handle not found." << std::endl; std 51 ConcordanceMain.cpp std::cerr << "Title DB Shared Memory Handle not found." << std::endl; std 55 ConcordanceMain.cpp std::cerr << "WordTree Lem Shared Memory Handle not found." << std 56 ConcordanceMain.cpp std::endl; std 60 ConcordanceMain.cpp std::cerr << "WordTree App Shared Memory Handle not found." << std 61 ConcordanceMain.cpp std::endl; std 65 ConcordanceMain.cpp std::cerr << "Concordance Configuration parameters: " << std::endl; std 66 ConcordanceMain.cpp for (std::map<std::string, std::string>::iterator it = mp.begin(); std 68 ConcordanceMain.cpp std::cerr << "- " << it->first << ":" << it->second << std::endl; std 72 ConcordanceMain.cpp std::locale::global(gen("ru_RU.UTF-8")); std 79 ConcordanceMain.cpp (std::atoi(hc.c_str())); std 84 ConcordanceMain.cpp (std::atoi(hd.c_str())); std 89 ConcordanceMain.cpp (std::atoi(hl.c_str())); std 94 ConcordanceMain.cpp (std::atoi(ha.c_str())); std 102 ConcordanceMain.cpp std::cerr << "Concordance Shared Memory Construction." << std::endl; std 116 ConcordanceMain.cpp std::cerr << "WServer exception: " << e.what() << std::endl; std 117 ConcordanceMain.cpp } catch (std::exception &e) { std 118 ConcordanceMain.cpp std::cerr << "exception: " << e.what() << std::endl; std 28 CorpusLoaderDaemon.cpp std::cerr << "Usage: " << argv[0] << std 29 CorpusLoaderDaemon.cpp " Corpus-file TitleDB-file" << std::endl; std 35 CorpusLoaderDaemon.cpp std::ofstream log(LOGFILE, std::ios::out | std::ios::app); std 36 CorpusLoaderDaemon.cpp std::cout.rdbuf(log.rdbuf()); std 37 CorpusLoaderDaemon.cpp std::cerr.rdbuf(log.rdbuf()); std 42 CorpusLoaderDaemon.cpp std::ifstream opidf; std 45 CorpusLoaderDaemon.cpp log << "CorpusLoader already started." << std::endl; std 48 CorpusLoaderDaemon.cpp std::ofstream pidf(CLPIDF); std 49 CorpusLoaderDaemon.cpp log << "CorpusLoader starting." << std::endl; std 59 CorpusLoaderDaemon.cpp log << "CorpusLoader First fork failed." << std::endl; std 79 CorpusLoaderDaemon.cpp log << "CorpusLoader Second fork failed." << std::endl; std 86 CorpusLoaderDaemon.cpp std::ifstream icf; std 89 CorpusLoaderDaemon.cpp std::cerr << "CorpusLoader " << argv[1] << " open failed." << std::endl; std 93 CorpusLoaderDaemon.cpp std::ifstream itd; std 96 CorpusLoaderDaemon.cpp std::cerr << "CorpusLoader " << argv[2] << " open failed." << std::endl; std 108 CorpusLoaderDaemon.cpp log << "CorpusLoader daemon started. PID: " << pid << std::endl; std 124 CorpusLoaderDaemon.cpp log << "CorpusLoader Corpus Shared Memory Construction." << std::endl; std 125 CorpusLoaderDaemon.cpp log << "CorpusLoader Corpus: " << argv[1] << std::endl; std 126 CorpusLoaderDaemon.cpp log << "CorpusLoader TitleDB: " << argv[2] << std::endl; std 138 CorpusLoaderDaemon.cpp ("CorpusMap")(std::less<char_string>(), valloc); std 152 CorpusLoaderDaemon.cpp corcnt << " lines constructed." << std::endl; std 154 CorpusLoaderDaemon.cpp " sec elapsed." << std::endl; std 159 CorpusLoaderDaemon.cpp ("TitleDBMap")(std::less<char_string>(), valloc); std 173 CorpusLoaderDaemon.cpp " lines constructed." << std::endl; std 175 CorpusLoaderDaemon.cpp " sec elapsed." << std::endl; std 180 CorpusLoaderDaemon.cpp std::ofstream conf(CONFIG, std::ios::out | std::ios::trunc); std 184 CorpusLoaderDaemon.cpp log << "CorpusLoader\tCorpus handle: " << handle << std::endl; std 185 CorpusLoaderDaemon.cpp conf << "CORPUSHDL=" << handle << std::endl; std 189 CorpusLoaderDaemon.cpp log << "CorpusLoader\tTitleDB handle: " << handle << std::endl; std 190 CorpusLoaderDaemon.cpp conf << "TITLDBHDL=" << handle << std::endl; std 200 CorpusLoaderDaemon.cpp "SIGINT, SIGTERM, SIGHUP, SIGQUIT." << std::endl; std 209 CorpusLoaderDaemon.cpp " accepted." << std::endl; std 214 CorpusLoaderDaemon.cpp " ignored." << std::endl; std 223 CorpusLoaderDaemon.cpp "." << std::endl; std 11 DeclareFunctions.hpp void config_load(const char* fn, std::map<std::string, std::string>& cm); std 12 DeclareFunctions.hpp void exp_tokenizer(std::string& line, std::vector<std::string>& sv); std 13 DeclareFunctions.hpp void corpus_tokenizer(std::string& line, std::vector<std::string>& sv); std 14 DeclareFunctions.hpp void emphword(std::string& l0, std::string& l1, std::string& l2, std 15 DeclareFunctions.hpp std::string& o1, std::string& o2, int pos, std 18 DeclareFunctions.hpp void escapetag(std::string& s); std 19 DeclareFunctions.hpp void ssclear(std::stringstream& ss); std 20 DeclareFunctions.hpp int calckind(std::string& s, std::vector<int>& gv, int& kind); std 21 DeclareFunctions.hpp int checkquery(std::string& s, std::vector<int>& gv, std::vector<query>& qv); std 17 Functions.cpp typedef std::pair<std::string, std::string> string_type; std 20 Functions.cpp std::string lopen = "<span class=\"hl\">"; // ヒット行ハイライト開始 std 21 Functions.cpp std::string lclos = "</span>"; // ヒット行ハイライト終了 std 22 Functions.cpp std::string eopen = "<em class=\"hit\">"; // ヒット語ハイライト開始 std 23 Functions.cpp std::string eclos = "</em>"; // ヒット語ハイライト終了 std 28 Functions.cpp void config_load(const char* fn, std::map<std::string, std::string>& cm) std 34 Functions.cpp std::string buf; std 35 Functions.cpp std::ifstream ifs(fn); std 36 Functions.cpp while (ifs && std::getline(ifs, buf)) { std 45 Functions.cpp std::cerr << "Unavailable line: " << buf << "\n"; std 48 Functions.cpp } catch (std::exception& e) { std 49 Functions.cpp std::cerr << "Configuration parse error: " << e.what() << "\n"; std 54 Functions.cpp void exp_tokenizer(std::string& line, std::vector<std::string>& sv) std 67 Functions.cpp void corpus_tokenizer(std::string& line, std::vector<std::string>& sv) std 82 Functions.cpp void emphword(std::string& l0, std::string& l1, std::string& l2, std 83 Functions.cpp std::string& o1, std::string& o2, int pos, std 87 Functions.cpp std::string bufo(l0); std 97 Functions.cpp std::strcpy(buf, bufo.c_str()); std 105 Functions.cpp std::string ws; // 強調すべき語 std 115 Functions.cpp std::string s0 = bufo.substr(0, wpt); // ヒット語前テキスト std 116 Functions.cpp std::string s1 = bufo.substr(wpt + ws.size()); // ヒット語後テキスト std 153 Functions.cpp std::string s0t; std 154 Functions.cpp std::string s1t; std 155 Functions.cpp std::string l1t; std 156 Functions.cpp std::string l2t; std 191 Functions.cpp std::string s(cs); std 192 Functions.cpp std::string sn; std 195 Functions.cpp std::string::size_type j = s.find(':'); std 196 Functions.cpp std::string::size_type i = ++j; std 201 Functions.cpp if ((std::atoi(s.c_str())) == fno) std 211 Functions.cpp int calckind(std::string& s, std::vector<int>& gv, int& kind) std 249 Functions.cpp int checkquery(std::string& s, std::vector<int>& gv, std::vector<query>& qv) std 266 Functions.cpp std::string wm[4]; std 287 Functions.cpp int dist = std::atoi(wm[2].c_str()); std 314 Functions.cpp void escapetag(std::string& s) std 328 Functions.cpp void ssclear(std::stringstream& ss) std 330 Functions.cpp static const std::string empty(""); std 338 Functions.cpp std::cerr << "Signal caught " << n << "\n"; std 10 Lemmatizer.cpp void lemmatize(std::string& tword, tl::lemmatizer& lem) std 17 Lemmatizer.cpp std::vector<wordst> wv; // 見出語属性 vector std 18 Lemmatizer.cpp std::vector<wordst>::iterator wit; // イテレータ std 112 Lemmatizer.cpp std::vector<std::string> vcand; std 123 Lemmatizer.cpp std::vector<std::string>::iterator sit; std 12 Query.hpp std::string qsrc; // クエリソース std 15 Query.hpp std::string qexp1; // 検査ワード std 17 Query.hpp std::string qexp2; // 近接隣接ワード std 13 RussianLemmatizer.hpp void lemmatize(std::string& tword, tl::lemmatizer& lem); std 17 RussianLemmatizer.hpp std::string word; // 見出語 std 30 SharedMemoryCommon.hpp typedef basic_string<char, std::char_traits<char>, char_allocator> char_string; std 32 SharedMemoryCommon.hpp typedef std::pair<const char_string, char_string> cormap_type; std 34 SharedMemoryCommon.hpp typedef map<char_string, char_string, std::less<char_string>, std 55 SharedMemoryCommon.hpp std::cout << "Word Tree Shared Memory Deconstruction.\n"; std 67 SharedMemoryCommon.hpp std::cout << "Corpus Shared Memory Deconstruction.\n"; std 79 SharedMemoryCommon.hpp std::cerr << "Concordance Shared Memory Deconstruction.\n"; std 42 SharedMemoryTree.hpp void setwpos(std::vector<offset_ptr<wpos> >& wpv, std 43 SharedMemoryTree.hpp std::vector<int>& gv); //位置情報p vectorセット std 51 SharedMemoryTree.hpp static void compadjacent(std::vector<offset_ptr<wpos> >& pv1, std 52 SharedMemoryTree.hpp std::vector<offset_ptr<wpos> >& pv2, std 53 SharedMemoryTree.hpp std::vector<offset_ptr<wpos> >& rv, std 61 SharedMemoryTree.hpp std::vector<offset_ptr<wpos> > wposv; // 位置情報への相対ポインタの vector std 84 SharedMemoryTree.hpp void enter_node(offset_ptr<node>& node, const std::string& word, std 89 SharedMemoryTree.hpp void find_node(const std::string& word, offset_ptr<node>& tnode); std 91 SharedMemoryTree.hpp void find_node_set(const std::string& word, std::vector<wordinfo>& nv, std 92 SharedMemoryTree.hpp std::vector<int>& gv, std 95 SharedMemoryTree.hpp void find_regex_node_set(boost::u32regex& reg, std::vector<wordinfo>& nv, std 96 SharedMemoryTree.hpp std::vector<int>& gv, std 99 SharedMemoryTree.hpp void find_adjacent_node_set(const std::string& adj1, std 100 SharedMemoryTree.hpp const std::string& adj2, std 101 SharedMemoryTree.hpp int kind, int dist, std::vector<wordinfo>& nv, std 102 SharedMemoryTree.hpp std::vector<int>& gv, std 105 SharedMemoryTree.hpp void setwordinfo(wordinfo& winfo, std::vector<int>& gv, std 114 SharedMemoryTree.hpp void enter_tree(const std::string& new_word, std 126 SharedMemoryTree.hpp void find_tree(const std::string& word) std 131 SharedMemoryTree.hpp void find_tree_set(const std::string& word, std 132 SharedMemoryTree.hpp std::vector<wordinfo>& nv, std 133 SharedMemoryTree.hpp std::vector<int>& gv) std 139 SharedMemoryTree.hpp std::vector<wordinfo>& nv, std 140 SharedMemoryTree.hpp std::vector<int>& gv) std 145 SharedMemoryTree.hpp void find_adjacent_tree_set(const std::string& adj1, std 146 SharedMemoryTree.hpp const std::string& adj2, std 148 SharedMemoryTree.hpp std::vector<wordinfo>& nv, std 149 SharedMemoryTree.hpp std::vector<int>& gv) std 46 WordTree.cpp void wpos::compadjacent(std::vector<offset_ptr<wpos> >& pv1, std 47 WordTree.cpp std::vector<offset_ptr<wpos> >& pv2, std 48 WordTree.cpp std::vector<offset_ptr<wpos> >& rv, std 51 WordTree.cpp std::vector<offset_ptr<wpos> > qv; // 適合位置情報ポインタの vector std 54 WordTree.cpp for (std::vector<offset_ptr<wpos> >::iterator pi1 = pv1.begin(); std 57 WordTree.cpp for (std::vector<offset_ptr<wpos> >::iterator pi2 = pv2.begin(); std 61 WordTree.cpp delta = std::abs std 68 WordTree.cpp for (std::vector<offset_ptr<wpos> >::iterator pi2 = pv2.begin(); std 72 WordTree.cpp delta = std::abs std 86 WordTree.cpp std::cout << genre << ":" << fname << ":" << linno << ":" std 90 WordTree.cpp std::cout << "\n"; std 95 WordTree.cpp void wpos::setwpos(std::vector<offset_ptr<wpos> >& wpv, std 96 WordTree.cpp std::vector<int>& gv) std 102 WordTree.cpp for (std::vector<int>::iterator vi = gv.begin(); std 109 WordTree.cpp void tree::enter_node(offset_ptr<node>& new_node, const std::string& new_word, std 125 WordTree.cpp std::strcpy((char*) ShmP, new_word.c_str()); std 142 WordTree.cpp if (std::strcmp(wp, new_word.c_str()) == 0) { std 152 WordTree.cpp if (std::strcmp(wp, new_word.c_str()) < 0) std 159 WordTree.cpp void tree::setwordinfo(wordinfo& winfo, std::vector<int>& gv, std 186 WordTree.cpp std::cout << wp << " " << top->counter << " "; std 194 WordTree.cpp void tree::find_node(const std::string& tword, offset_ptr<node>& tnode) std 203 WordTree.cpp if (std::strcmp(wp, tword.c_str()) == 0) { std 204 WordTree.cpp std::cout << wp << " " << tnode->counter << " "; std 210 WordTree.cpp if (std::strcmp(wp, tword.c_str()) < 0) std 217 WordTree.cpp void tree::find_node_set(const std::string& tword, std::vector<wordinfo>& nv, std 218 WordTree.cpp std::vector<int>& gv, offset_ptr<node>& tnode) std 227 WordTree.cpp if (std::strcmp(wp, tword.c_str()) == 0) { std 238 WordTree.cpp if (std::strcmp(wp, tword.c_str()) < 0) std 245 WordTree.cpp void tree::find_regex_node_set(boost::u32regex& reg, std::vector<wordinfo>& nv, std 246 WordTree.cpp std::vector<int>& gv, offset_ptr<node>& tnode) std 271 WordTree.cpp void tree::find_adjacent_node_set(const std::string& adj1, // 検査ワード std 272 WordTree.cpp const std::string& adj2, // 近接隣接ワード std 275 WordTree.cpp std::vector<wordinfo>& nv, // 結果 vector std 276 WordTree.cpp std::vector<int>& gv, std 282 WordTree.cpp std::vector<wordinfo> adjv1, adjv2; std 305 WordTree.cpp for (std::vector<wordinfo>::iterator n1it = adjv1.begin(); std 307 WordTree.cpp std::vector<offset_ptr<wpos> > rv; std 309 WordTree.cpp for (std::vector<wordinfo>::iterator n2it = adjv2.begin(); std 45 WordTreeBuilderDaemon.cpp void corpus_scan(std::string& cl, offset_ptr<tree>& wtp, bool sw) std 47 WordTreeBuilderDaemon.cpp std::vector<std::string> wordv; // 単語 vector std 56 WordTreeBuilderDaemon.cpp for (std::vector<std::string>::iterator it = wordv.begin(); std 68 WordTreeBuilderDaemon.cpp } catch (const std::exception& e) { std 69 WordTreeBuilderDaemon.cpp std::cerr << "Lemmatizer error: " << std 70 WordTreeBuilderDaemon.cpp e.what() << std::endl; std 94 WordTreeBuilderDaemon.cpp std::cerr << "Usage: " << argv[0] << " Corpus-file" << std::endl; std 100 WordTreeBuilderDaemon.cpp std::ofstream log(LOGFILE, std::ios::out | std::ios::app); std 101 WordTreeBuilderDaemon.cpp std::cout.rdbuf(log.rdbuf()); std 102 WordTreeBuilderDaemon.cpp std::cerr.rdbuf(log.rdbuf()); std 106 WordTreeBuilderDaemon.cpp std::ifstream cpidf; std 109 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder CorpusLoader not executed yet." << std::endl; std 113 WordTreeBuilderDaemon.cpp std::string ln; std 117 WordTreeBuilderDaemon.cpp std::endl; std 126 WordTreeBuilderDaemon.cpp std::ifstream opidf; std 129 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder already started." << std::endl; std 132 WordTreeBuilderDaemon.cpp std::ofstream pidf(WTPIDF); std 133 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder starting." << std::endl; std 143 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder First fork failed." << std::endl; std 163 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder Second fork failed." << std::endl; std 170 WordTreeBuilderDaemon.cpp std::ifstream icf; std 173 WordTreeBuilderDaemon.cpp std::cerr << "WordTreeBuilder " << argv[1] << std 174 WordTreeBuilderDaemon.cpp " open failed." << std::endl; std 186 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder daemon started. PID: " << pid << std::endl; std 202 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder Word Tree Shared Memory Construction." << std::endl; std 203 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder Corpus: " << argv[1] << std::endl; std 205 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder shared memory segment attached." << std::endl; std 209 WordTreeBuilderDaemon.cpp } catch (const std::exception& e) { std 211 WordTreeBuilderDaemon.cpp e.what() << std::endl; std 215 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder shared memory allocated." << std::endl; std 220 WordTreeBuilderDaemon.cpp << (void*) ShmP << std::endl; std 224 WordTreeBuilderDaemon.cpp std::locale::global(gen("fr_FR.UTF-8")); std 225 WordTreeBuilderDaemon.cpp std::locale::global(gen("ru_RU.UTF-8")); std 230 WordTreeBuilderDaemon.cpp } catch (const std::exception& e) { std 231 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder Lemmatizer error: " << e.what() << std::endl; std 240 WordTreeBuilderDaemon.cpp std::ofstream conf(CONFIG, std::ios::out | std::ios::app); std 246 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder Lemmatized form Word Tree:" << std::endl; std 250 WordTreeBuilderDaemon.cpp std::string ldata; // 入力バッファ std 257 WordTreeBuilderDaemon.cpp lcnt << " lines proceeded." << std::endl; std 263 WordTreeBuilderDaemon.cpp << t.elapsed() << " sec." << std::endl; std 265 WordTreeBuilderDaemon.cpp lcnt << " lines." << std::endl; std 267 WordTreeBuilderDaemon.cpp << words->getwordproccount() << " words." << std::endl; std 269 WordTreeBuilderDaemon.cpp << words->getwordtotalcount() << " words." << std::endl; std 271 WordTreeBuilderDaemon.cpp << (void*) ShmP << std::endl; std 273 WordTreeBuilderDaemon.cpp << (void*) lmsp << std::endl; std 274 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder\tAddress difference: " << std::hex std 275 WordTreeBuilderDaemon.cpp << ShmP - lmsp << " (" << std::dec << ShmP - lmsp << ")" << std::endl; std 281 WordTreeBuilderDaemon.cpp << handle << std::endl; std 282 WordTreeBuilderDaemon.cpp conf << "WORDTLHDL=" << handle << std::endl; std 288 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder\tAppearance form Word Tree:" << std::endl; std 299 WordTreeBuilderDaemon.cpp lcnt << " lines proceeded." << std::endl; std 305 WordTreeBuilderDaemon.cpp << t.elapsed() << " sec." << std::endl; std 307 WordTreeBuilderDaemon.cpp lcnt << " lines." << std::endl; std 309 WordTreeBuilderDaemon.cpp << wordsap->getwordproccount() << " words." << std::endl; std 311 WordTreeBuilderDaemon.cpp << wordsap->getwordtotalcount() << " words." << std::endl; std 313 WordTreeBuilderDaemon.cpp << (void*) ShmP << std::endl; std 315 WordTreeBuilderDaemon.cpp << (void*) apsp << std::endl; std 316 WordTreeBuilderDaemon.cpp log << "WordTreeBuilder\tAddress difference: " << std::hex std 317 WordTreeBuilderDaemon.cpp << ShmP - apsp << " (" << std::dec << ShmP - apsp << ")" << std::endl; std 323 WordTreeBuilderDaemon.cpp << handle << std::endl; std 324 WordTreeBuilderDaemon.cpp conf << "WORDTAHDL=" << handle << std::endl; std 334 WordTreeBuilderDaemon.cpp "SIGINT, SIGTERM, SIGHUP, SIGQUIT." << std::endl; std 343 WordTreeBuilderDaemon.cpp " accepted." << std::endl; std 348 WordTreeBuilderDaemon.cpp " ignored." << std::endl; std 357 WordTreeBuilderDaemon.cpp "." << std::endl;