mirror of
https://github.com/bab2min/Kiwi.git
synced 2026-06-17 01:54:27 +00:00
Address PR feedback: remove jobject specialization, unify ctor names, merge WASM build functions, add chunked stream API
Co-authored-by: bab2min <19266222+bab2min@users.noreply.github.com>
This commit is contained in:
parent
c854f073fa
commit
07c8eb10fb
5 changed files with 168 additions and 209 deletions
|
|
@ -259,11 +259,6 @@ namespace jni
|
|||
};
|
||||
|
||||
// Forward declaration for StreamProvider interface
|
||||
template<>
|
||||
struct JClassName<jobject>
|
||||
{
|
||||
static constexpr auto value = std::string_view{ "kr/pe/bab2min/KiwiBuilder$StreamProvider" };
|
||||
};
|
||||
}
|
||||
|
||||
class JKiwi;
|
||||
|
|
@ -712,7 +707,7 @@ JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM* vm, void* reserved)
|
|||
|
||||
jni::define<JKiwiBuilder>()
|
||||
.template ctor<std::string, size_t, kiwi::BuildOption, kiwi::ModelType>()
|
||||
.template ctor<jobject, size_t, kiwi::BuildOption, kiwi::ModelType>("ctorStream")
|
||||
.template ctor<jobject, size_t, kiwi::BuildOption, kiwi::ModelType>()
|
||||
.template method<&JKiwiBuilder::addWord>("addWord")
|
||||
.template method<&JKiwiBuilder::addWord2>("addWord")
|
||||
.template method<&JKiwiBuilder::addPreAnalyzedWord>("addPreAnalyzedWord")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue