Commit Graph

498 Commits

Author SHA1 Message Date
Miwa / Ensan
77d6f396cb fix: use shortend profile for complexity control 2024-12-01 12:04:47 +09:00
Miwa / Ensan
4ab9bb94d4 fix: resolve mutability-related warning 2024-12-01 12:04:27 +09:00
Miwa / Ensan
63ade4d6e9 feat: resolve -related warnings 2024-12-01 12:03:59 +09:00
Miwa
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
Miwa
254a8ca7db Merge pull request #147 from fkunn1326/ci/android
AndroidでのCIを修正
2024-11-02 14:12:46 +09:00
fkunn1326
3a8356da92 Ci android (#4)
* ci: change to swift bundle

* ci: remove branch limitations

* ci: fix variable name

* ci: fix maybe

* ci: guest to target

* ci: target

* ci: use swift 6.0.1?

* ci: integrate swift versions

* fix...?

* debug

* ci: setup swift

* ci: echo

* ci: arch

* ci: fix arch target

* ci: fix android abi

* ci: arch

* ci: clean
2024-11-02 09:18:08 +09:00
Miwa
01321ecca8 Merge pull request #145 from phoepsilonix/tools/linux_cli
Added 'objc' to the linker target of CliTool(Linux)
2024-10-13 22:12:46 +09:00
Masato TOYOSHIMA
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
fkunn1326
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
Miwa
36a73c135d Merge pull request #140 from ensan-hcl/refactor/ergonomic_error_message
refactor: ファイルが読み込めなかった際のエラーメッセージを改善し、深刻であるのかをわかりやすくした
2024-09-29 16:32:02 +09:00
Miwa / Ensan
378c9eb2f3 refactor: ファイルが読み込めなかった際のエラーメッセージを改善し、深刻であるのかをわかりやすくした 2024-09-29 15:58:57 +09:00
Miwa
552d6d803b Merge pull request #139 from ensan-hcl/fix/incremental_dynamic_user_dictionary
fix: dynamic user dictionaryがgetLOUDSDataで効かない問題を修正
2024-09-28 18:38:05 +09:00
Miwa / Ensan
d32b90581e fix: dynamic user dictionaryがgetLOUDSDataで効かない問題を修正 2024-09-28 18:14:29 +09:00
Miwa
38cfe74003 Merge pull request #136 from ensan-hcl/fix/enable_user_dictionary_wo_zenzai
fix: Zenzaiが無い状態でも動的ユーザ辞書を有効化
2024-09-28 18:04:59 +09:00
Miwa / Ensan
84dfb9fe97 fix: testコードでのエラーを修正 2024-09-28 17:35:21 +09:00
Miwa / Ensan
5916f3450a Merge branch 'develop' into fix/enable_user_dictionary_wo_zenzai 2024-09-28 17:27:51 +09:00
Miwa
753bcf6c73 Merge pull request #137 from ensan-hcl/fix/swift6_build_errors
fix: Concurrency周りのビルドエラー
2024-09-28 17:27:27 +09:00
Miwa / Ensan
6d482abdca fix: build errors in CliTools 2024-09-28 17:06:41 +09:00
Miwa / Ensan
0f488d987c fix: Zenzaiが無い状態でもユーザ辞書を有効化 2024-09-28 16:57:47 +09:00
Miwa
6e5c08215c Merge pull request #134 from ensan-hcl/fix/xn
fix: xn→ん の変換が n+子音→ん+子音 の挙動で上書きされてしまう問題を修正
2024-09-22 11:16:09 +09:00
Miwa / Ensan
fa65be47a3 fix: xn→ん の変換が n+子音→ん+子音 の挙動で上書きされてしまう問題を修正 2024-09-22 10:09:56 +09:00
Miwa
8cf7aabf63 feat: Zenzaiでユーザ辞書を有効化 (#132)
* feat: add 'isFromUserDictionary' attribute

* fix: support dynamic user dict

* feat: ユーザ辞書機能を有効化

* feat: evaluate commandを修正

* fix: avoid using 'consume'

* fix: logic error which damages accuracy

* chore: minor prompt engineering
2024-09-22 01:31:35 +09:00
Miwa
88414a2ace Merge pull request #133 from ensan-hcl/fix/install_script
fix: Xcode 16以降でZenzai対応ビルドができなくなっていた問題を修正
2024-09-22 00:26:41 +09:00
Miwa / Ensan
6854c5b022 fix: add build command for xcode 16+ 2024-09-22 00:26:08 +09:00
Miwa
49304e9cff Merge pull request #131 from ensan-hcl/docs/update_zenzai_document
docs: Zenzaiに関する記述を更新
2024-09-21 13:54:46 +09:00
ensan-hcl
52144affe2 docs: add zenzai 2024-09-21 13:30:42 +09:00
Miwa
bab70ac150 Merge pull request #130 from ensan-hcl/fix/disable_typo_correction
fix: typo correctionの無効化に関して、条件分岐を逆に指定したミスを修正
2024-09-15 00:55:06 +09:00
Miwa / Ensan
9f8735a1ae fix: 条件が逆だった問題を修正 2024-09-15 00:53:11 +09:00
Miwa
b909d9783b Merge pull request #129 from ensan-hcl/fix/dakuten
fix: 濁点の処理修正PRで存在していた実装の漏れを修正
2024-09-15 00:42:12 +09:00
Miwa / Ensan
8e4579dfb3 fix: 実装の漏れを修正 2024-09-15 00:34:52 +09:00
Miwa
fe894f529d Merge pull request #128 from ensan-hcl/feat/remove_typing_correction_in_zenzai
feat: Zenzaiの利用時にtypo correctionを無効化
2024-09-15 00:20:13 +09:00
Miwa
1052510aec Merge pull request #127 from ensan-hcl/fix/dakuten_candidates
fix: retryの候補として不適切そうな単語を無視する処理を追加
2024-09-14 23:59:31 +09:00
Miwa / Ensan
971faed131 feat: Zenzaiの利用時にtypo correctionを無効化 2024-09-14 23:58:35 +09:00
Miwa
bc02475a81 Merge pull request #125 from ensan-hcl/fix/prompted_conversion
fix: プロフィール付き変換で半角コロンを使うように変更、トークナイザの苦手な文字を削除
2024-09-14 23:36:28 +09:00
Miwa / Ensan
2df31c67d2 fix: retryの候補として不適切そうな単語を無視する処理を追加 2024-09-14 23:36:14 +09:00
Miwa / Ensan
ca8da67f73 fix: プロフィール付き変換で半角コロンを使うように変更、トークナイザの苦手な文字を削除 2024-09-14 23:14:02 +09:00
Miwa
269c47dd3c Merge pull request #124 from fkunn1326/zenzai-cuda
Windowsではllama.cppを分離する
2024-09-14 22:33:42 +09:00
fkunn1326
ae0b4053de add windows docs 2024-09-14 21:14:19 +09:00
fkunn1326
58921b244f change git repo 2024-09-14 18:04:48 +09:00
fkunn1326
0d425081be remove cuda 2024-09-14 10:23:54 +09:00
fkunn1326
28b327bbc4 fix ci for cuda build 2024-09-14 09:25:24 +09:00
fkunn1326
3215fb7470 Add zenzai cuda support 2024-09-14 08:22:39 +09:00
Miwa
31ce9911ac Merge pull request #122 from fkunn1326/fix-zenzai-on-windows
small fix for zenzai on windows
2024-08-23 22:08:45 +09:00
fkunn1326
875e727030 small fix for zenzai on windows 2024-08-23 21:12:51 +09:00
Miwa
7a2d55dd5e Merge pull request #121 from ensan-hcl/feat/support_extended_roman2kana_key_maps
feat: 「xn→ん」「ca→か」などを追加
2024-08-23 00:36:27 +09:00
Miwa / Ensan
a1bfab1542 fix: 考慮漏れの条件を微調整 2024-08-23 00:19:09 +09:00
Miwa / Ensan
31d040e0e8 chore: 使われていないとのコメントは誤り 2024-08-23 00:14:02 +09:00
Miwa / Ensan
af3e2dd2f4 Revert "chore: 使用されていないAPIを削除"
This reverts commit bccb5e48e4.
2024-08-23 00:13:07 +09:00
Miwa / Ensan
87f207eb93 feat: add c+x commands 2024-08-23 00:07:33 +09:00
Miwa / Ensan
f9b66f3eb2 feat: add xn→ん 2024-08-23 00:05:51 +09:00