mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
22 lines
458 B
C++
22 lines
458 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <fstream>
|
|
|
|
#define MODEL_PATH "./models/cong/base"
|
|
#define KWORD u"킼윜"
|
|
#define KWORD8 u8"킼윜"
|
|
|
|
inline std::vector<std::string> loadTestCorpus()
|
|
{
|
|
std::ifstream ifs{ "./data/evaluation/web.txt" };
|
|
std::string str;
|
|
std::vector<std::string> ret;
|
|
while (std::getline(ifs, str))
|
|
{
|
|
size_t sep = str.find('\t');
|
|
ret.emplace_back(str.substr(0, sep));
|
|
}
|
|
return ret;
|
|
}
|