From f8d0a34cc0412c663154efec88902c081c2315be Mon Sep 17 00:00:00 2001 From: zhoupeng Date: Thu, 27 Sep 2018 06:42:15 +0800 Subject: [PATCH] o --- tests/testlang.nim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/testlang.nim b/tests/testlang.nim index 547ca47..46cfc69 100644 --- a/tests/testlang.nim +++ b/tests/testlang.nim @@ -3,8 +3,9 @@ import nimfastText/fasttext import os import streams -var ft = constructFastText() -let langModel = unixToNativePath("tests" / "lid.176.ftz") +var ft:FastText -ft.loadModel(langModel) \ No newline at end of file +const langModel:cstring = unixToNativePath("tests" / "lid.176.ftz") + +ft.loadModel( constructStdString(langModel) ) \ No newline at end of file