Commit Graph

166 Commits

Author SHA1 Message Date
Miwa
2cde22d3e2 feat: introduce package traits of Swift 6.1 (#172)
* feat: introduce package traits of Swift 6.1

* fix: CI

* fix: android toolchain install script

* fix: ci for windows

* chore: add debug dump of sdk list

* fix: update devcontainer swift image

* fix?

* chore: remove LLAMA_MOCK=1 since it is no longer required

* chore: add debug print of configuration

* fix: typo

* chore: use signed xcframework of azooKey/llama.cpp

* chore: use updated xcframework

* chore: use updated xcframework

* chore: use updated xcframework

* chore: use updated xcframework

* chore: use updated xcframework

* docs: add usage of Zenzai trait
2025-04-06 17:49:14 +09:00
Miwa
858416289f Update digit check in convertToTimeExpression function
* Check if characters are ASCII digits instead of just digits
2025-03-30 17:09:02 +09:00
Miwa
a9971e6909 Add digit check to convertToTimeExpression function
* Check if all characters in the input string are digits before processing
* Return an empty array if the input string contains non-digit characters
2025-03-30 17:05:48 +09:00
Miwa
38b84fe3e8 Add convertToTimeExpression function to convert numbers into time expressions
* Add logic to handle 3-digit and 4-digit numbers
* Check if the number is 3 digits with the first digit between 0-9 and the last two digits between 00-60
* Check if the number is 4 digits with the first two digits between 00-24 and the last two digits between 00-59
* Convert the number into a time expression in the format 'HH:MM' if conditions are met
2025-03-30 17:04:30 +09:00
Miwa
feb5daa5bb Update convertToTimeExpression function to handle edge cases and correct time validation
* **TimeExpression.swift**
  - Change the validation for 3-digit numbers to allow last two digits between 00-59.
  - Change the validation for 4-digit numbers to allow first two digits between 00-24 and last two digits between 00-59.

* **TimeExpressionTests.swift**
  - Update test cases to reflect the new validation rules.
  - Change test input "1360" to "2440" and update expected results accordingly.
  - Update assertions for the modified test cases.
2025-03-30 16:57:46 +09:00
Miwa
ff8c38f76c Update KanaKanjiConverter to handle time expression conversion
* Rename `toTimeExpressionCandidates` function to `convertToTimeExpression`
* Remove `toTimeExpressionCandidates` function and integrate its logic into `convertToTimeExpression`
* Call `convertToTimeExpression` function in `getWiseCandidate` function
2025-03-30 16:35:31 +09:00
Miwa
ad580d5214 feat: Add time expression conversion function
Fixes #170

Add functionality to convert 3-digit and 4-digit numbers into time expressions in the format 'HH:MM'.

* Add `convertToTimeExpression` function in `Sources/KanaKanjiConverterModule/Converter/TimeExpression.swift` to handle the conversion.
* Modify `Sources/KanaKanjiConverterModule/Converter/KanaKanjiConverter.swift` to include the new function and call it within `getWiseCandidate`.
* Add tests in `Tests/KanaKanjiConverterModuleTests/ConverterTests/TimeExpressionTests.swift` to ensure the new function works correctly.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/azooKey/AzooKeyKanaKanjiConverter/issues/170?shareId=XXXX-XXXX-XXXX-XXXX).
2025-03-30 16:32:25 +09:00
Miwa
7d5dd99fd7 Merge pull request #157 from fkunn1326/latest_llama
feat: 最新のllama.cppに対応
2025-03-18 23:03:14 +09:00
Miwa / Ensan
1409575391 perf: 予測変換候補の検索において早期に打ち切ることで高速化 2025-03-16 15:30:23 +09:00
fkunn1326
bd407171f8 Merge branch 'develop' into latest_llama 2025-03-16 08:49:15 +09:00
fkunn1326
a164294c19 ci: llama-mockの抜けを修正 2025-03-08 20:10:58 +09:00
fkunn1326
b5765163fe ci: llama-mockを更新 2025-03-08 19:59:17 +09:00
Miwa
35b708997b Merge pull request #161 from azooKey/feat/fyu
feat: ローマ字入力中、fyu→ふゅ、を追加
2025-03-08 17:05:52 +09:00
Miwa
da09c69f04 Merge pull request #160 from azooKey/feat/session_command_replay
feat: sessionコマンドにdump/replayの機能を追加
2025-03-08 17:05:34 +09:00
ensan-hcl
f56ece1517 fyu→ふゅ、を追加 2025-03-08 16:00:30 +09:00
ensan-hcl
c240dec854 feat: sessionコマンドにdump/replayの機能を追加 2025-03-08 15:54:12 +09:00
ensan-hcl
99625951c7 fix: 前方文脈に半角スペースが入ると変換が不安定になっていた問題を修正 2025-03-08 15:52:13 +09:00
fkunn1326
6bb5d2d49f fix: accept suggestions 2025-03-06 18:37:29 +09:00
fkunn1326
d0397c62ca refactor: キャッシュしたデータをDicdataStoreに保持するように 2025-02-27 07:10:44 +09:00
fkunn1326
39b90389da perf: file I/Oでの遅延をなくすために、事前にキャッシュできるように 2025-02-26 20:24:27 +09:00
fkunn1326
d49fb598fe feat: 最新のllama.cppに対応 2025-02-26 15:52:18 +09:00
Miwa
24f506b5b5 feat: ngramの学習のresume処理を実装 (#156)
* feat: ngramの学習のresume処理を実装

* fix: mock signature for Android
2025-02-13 16:29:25 +09:00
fkunn1326
c307efa527 fix: Windows用のワークアラウンド (https://github.com/azooKey/AzooKeyKanaKanjiConverter/pull/122) を削除 (#154)
Swiftのアップデートで挙動が修正されたため
2025-02-11 18:16:52 +09:00
Miwa
531c6fe0fb feat: SwiftNGramWithMarisaTrieへの依存を除去し、内部の実装をターゲットとして追加 (#153) 2025-02-09 20:09:01 +09:00
Miwa
a39216b0d2 Merge branch 'develop' into feat/enhance-email-lookup 2025-02-09 02:45:31 +09:00
Miwa / Ensan
8fe580c793 remove: redundant print 2025-02-09 02:32:02 +09:00
Miwa / Ensan
e94ecdc951 fix: fix build errors 2025-02-09 01:43:37 +09:00
Miwa
e5214c3d5c feat: Enhance email address conversion feature
Fixes #75

Enhance the email address conversion feature to filter suggestions based on partial domain inputs.

* Update `toEmailAddressCandidates` function in `Sources/KanaKanjiConverterModule/Converter/EmailAddress.swift` to filter suggestions based on the characters before '@'.
* Add logic to check if the input ends with '@' and filter the suggestions based on the characters before '@'.
* Generate suggestions for email domains that match the partial domain input.
* Add tests in `Tests/KanaKanjiConverterModuleTests/ConverterTests/EmailAddressConversionTests.swift` to verify the new filtering functionality for partial domain inputs like '@g' and '@y'.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/ensan-hcl/AzooKeyKanaKanjiConverter/issues/75?shareId=XXXX-XXXX-XXXX-XXXX).
2025-02-09 00:14:32 +09:00
Miwa / Ensan
f18dc75f6c optimize: do not calclate when alpha is zero 2025-02-08 22:42:11 +09:00
Miwa / Ensan
c6fa42fdfe fix: log(logprob) is ridiculous 2025-02-08 19:02:13 +09:00
Miwa / Ensan
36277064b4 feat: support N-gram based personalization 2025-02-08 18:57:04 +09:00
Miwa
b47aa2d90a Merge branch 'develop' into feat/zenz-v3 2025-02-06 23:03:07 +09:00
Miwa / Ensan
9142f3e493 support zenz-v3 2025-02-06 23:01:51 +09:00
Miwa / Ensan
4e3921cee2 impl for eval 2025-02-06 21:58:26 +09:00
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
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 / Ensan
378c9eb2f3 refactor: ファイルが読み込めなかった際のエラーメッセージを改善し、深刻であるのかをわかりやすくした 2024-09-29 15:58:57 +09:00
Miwa / Ensan
d32b90581e fix: dynamic user dictionaryがgetLOUDSDataで効かない問題を修正 2024-09-28 18:14:29 +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 / 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 / Ensan
9f8735a1ae fix: 条件が逆だった問題を修正 2024-09-15 00:53:11 +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