531c6fe0fb
feat: SwiftNGramWithMarisaTrieへの依存を除去し、内部の実装をターゲットとして追加 ( #153 )
2025-02-09 20:09:01 +09:00
0e4842c2bf
feat: Swift 6.0 移行はこのあとにする
2025-02-09 01:46:11 +09:00
e94ecdc951
fix: fix build errors
2025-02-09 01:43:37 +09:00
36277064b4
feat: support N-gram based personalization
2025-02-08 18:57:04 +09:00
fe3fe96e9b
feat: use azooKey_emoji_dictionary_storage ( #146 )
...
* feat: use azooKey_emoji_dictionary_storage
* feat: add test
* fix: test case
* feat: fix build error
* fix: build error
* fix: fix android build
* fix: confirm libicu-dev is installed
* test: add non-empty test case
* fix: continue on empty line
2024-12-01 00:59:27 +09:00
db29ea2de1
Added 'objc' to the linker target of CliTool(Linux) #145
...
pr #145
Linuxにおいて、Link時にObjcのライブラリが見つからないエラーが出るため、swift build,swift testが失敗します。
それを修正するものです。
Ubuntuのclang-15環境では問題がないようです。
Arch系のclang-18の環境でエラーが出ています。
Ubuntuのclang-15だと-lobjcはエラーになるようです。
なおAndroidでも、-lobjcはエラーになるとのことでした。
そもそも、objective-c環境がない方が、Linuxには多いと思います。
Anrdoid以外のLinuxにおいて、ダミーのファイルをclangにコンパイルさせ、-lobjcオプションが有効かどうかを判断させます。この処理を加えることで、clangなどのバージョンに関係なく、判別できるかと思います。
```sh
swift build -Xswiftc -strict-concurrency=complete -Xcxx -xobjective-c++ -v
```
```
error: link command failed with exit code 1 (use -v to see invocation)
AzooKeyKanaKanjiConverter/.build/x86_64-unknown-linux-gnu/release/llama.build/llama.cpp.o:llama.cpp:DW.ref.__gnu_objc_personality_v0:(.data.DW.ref.__gnu_objc_personality_v0+0x0): error: undefined reference to '__gnu_objc_personality_v0'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[2/3] Linking CliTool
```
2024-10-13 05:09:11 +09:00
96e8f37a01
CI: Androidのビルドサポートを追加 ( #142 )
...
* ci: change swift version to stable
* ci: change trigger for test
* revert changes
* ci: fix version
* ci: change display text from branch to tag
* a
* ci
* fix trigger
* fix
* fix for android (use float func)
* ci: heckout with submodules
* ci: remove unneccesary files
* ふぃふぃふぃ
* ci: copy neccesary files
* ci: fix for arm build
* ci: arm
* nn>
* a
* tree
* cp -r
* haaa?
* ci: 大文字と小文字
* ci: re
* ci: copy resource folder
* ci: change path
* ci: default dictionary
* ci: こうか?
* ci: revert changes
* ci: clean workflow
* fix
* n
* a
* ci: incorporate jobs
* fix variable
* fix path
* ci: incorporate android actions to swift.yml
* fix
* ci: fix yaml syntax error
* ci: fix syntax error?
* ci: format
* ci: use valid yml
* ci: use release tag instead of latest tag
* ci: cache
* ci: build llama on android?
* ci: add header include path
* a
* a
* hensu
* fix: llama mock
* uninclude llama
* change os(android) to canimport(andoid)
* a
* remove linux
* a
* n
* ci: check with env value
* fix LLAMA_MOCK
* Update .gitignore
2024-09-30 22:13:01 +09:00
58921b244f
change git repo
2024-09-14 18:04:48 +09:00
28b327bbc4
fix ci for cuda build
2024-09-14 09:25:24 +09:00
3215fb7470
Add zenzai cuda support
2024-09-14 08:22:39 +09:00
f840f7bea4
change dependency
2024-08-04 08:58:18 +09:00
92e00ea83d
change llama.cpp branch
2024-08-04 07:54:48 +09:00
e7409f0085
change for llama.cpp
2024-08-04 07:40:31 +09:00
42bc4169d3
fix for mac build?
2024-08-04 07:01:02 +09:00
3d87e8fb99
fix build
2024-08-04 06:55:20 +09:00
5aa0f52674
Merge branch 'ensan-hcl:develop' into develop
2024-08-04 06:22:54 +09:00
445361d6dc
feat: add next character prediction API and add it to session cli
2024-08-01 15:57:56 +09:00
569d8adc10
for windows
2024-06-27 07:01:46 +09:00
55ffe3c708
[Experimental] Zenzai ( #92 )
...
* experimental rinna integration
* Update impl
* update
* Bump swift-actions/setup-swift from 1 to 2
Bumps [swift-actions/setup-swift](https://github.com/swift-actions/setup-swift ) from 1 to 2.
- [Release notes](https://github.com/swift-actions/setup-swift/releases )
- [Commits](https://github.com/swift-actions/setup-swift/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: swift-actions/setup-swift
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* change test
* change impl
* take gpt2 weight as option
* don't use async
* support status check
* enhance error
* avoid percent encode
* update
* GPT-2 based kana-kanji conversion is now perfectly workinggit statusgit status
* fix a bug
* Rename gpt2/llama -> zenz
* cleanup
* internal apiを綺麗にした
* cleanup experimental commands
* update
* partially support incremental input using cache
* fix names
* fix bug
* support roman2kana
* cleanup
* fix minor bugs
* improve logic
* fix minor bug
* fix minor bug
* fix minor bug
* optimize
* optimize performance
* Optimize cache hit
* cli: add anco session command
* fix cache hit bugs
* improve session commands
* maybe this will work better for incremental input environment
* speed up zenzai by using n_best alternatives
* update zenz context
* adding no_typo api
* add inference limit
* fix bug
* reset install_cli
* make package buildable -- but llama.cpp features just do not work at this point because metal is not preprocessed
* add proper availability checks
* change macOS minimum version
* fix several problems
* code cleanup
* enable ubuntu build
* fix build error
* fix ubuntu build
* fix borrowing
* update install_cli.sh
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-15 01:36:45 +09:00
f30bfcf298
Introduce anco cli tool
2024-02-27 23:44:01 +09:00
85a15051b4
[Experimental] InputGraphのアルゴリズムの改善 ( #48 )
...
* add correct graph
* CorrectGraphの概念を導入し、混乱をある程度解消
* Additioanl edge cases
* fix some test
* Now lookup graph perfectly works
2024-02-27 00:52:25 +09:00
6f2a5218a2
add submodule and add conversion tests
2024-02-20 00:34:47 +09:00
c2685489ca
Change Package version
2023-09-23 15:48:02 +09:00
b38e6b6fa4
lint
2023-09-23 01:52:22 +09:00
aad755da6f
Support Strict concurrency
2023-07-23 18:48:20 +09:00
a0b7333500
Revert relax package availability
2023-07-23 16:05:37 +09:00
9ecc4f5e5a
Relax package availablity
2023-07-23 00:59:49 +09:00
98bc180c17
Move to root
2023-07-23 00:34:27 +09:00