mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
Add 64-bit mode check for CoNgramFunctions test
This commit is contained in:
parent
6dbfe658d0
commit
8342065889
1 changed files with 6 additions and 0 deletions
|
|
@ -981,6 +981,12 @@ TEST(KiwiCpp, AnalyzeCong)
|
|||
|
||||
TEST(KiwiCpp, CoNgramFunctions)
|
||||
{
|
||||
if (sizeof(void*) != 8)
|
||||
{
|
||||
std::cerr << "This test is only available in 64-bit mode" << std::endl;
|
||||
return;
|
||||
}
|
||||
|
||||
Kiwi kiwiF = KiwiBuilder{ CONG_MODEL_PATH, 0, BuildOption::default_, ModelType::congGlobalFp32 }.build();
|
||||
Kiwi kiwiQ = KiwiBuilder{ CONG_MODEL_PATH, 0, BuildOption::default_, ModelType::congGlobal }.build();
|
||||
auto lmF = dynamic_cast<const lm::CoNgramModelBase*>(kiwiF.getLangModel());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue