Commit Graph

84 Commits

Author SHA1 Message Date
b9bd88a247 refactor: clean up API 2025-07-15 05:02:29 +09:00
16363be738 fix: now FullInputProcessing.swift natively works with new index system 2025-07-14 21:17:33 +09:00
02fcdd4dc1 wip: test is not passing, but commit/push it for
working in another env
2025-07-14 00:42:53 +09:00
ee17b238a2 feat: インデックスの整合性を取るためのAPIを追加 2025-07-12 01:52:59 +09:00
704fa9871f feat: Latticeの操作をconvertTargetベースのindexとinputベースのindexの二重化 2025-07-10 01:12:11 +09:00
947ca5e689 fix: input rangeの間違った設定を修正 2025-07-06 18:51:46 +09:00
9d66ef0851 fix: 動的ユーザ辞書が適切に読めていなかった問題を修正 2025-07-06 16:57:27 +09:00
b29fa62f17 fix: minor fixes 2025-07-03 22:51:35 +09:00
fe2c1ec4ae feat: getLOUDSData関数をgetLOUDSDataInRange関数に統合。最適化を行っていない実装にもかかわらず、従来実装の1.2倍程度の高速化効果が得られる 2025-06-29 19:52:27 +09:00
2e61ad1638 fix: depth関連の実装を適切に修正 2025-06-29 15:01:20 +09:00
763b059a45 feat: support roman version of pruning 2025-06-29 14:16:25 +09:00
eb4e669b2b feat: typo correctionの枝刈りを実装し、direct入力のケースでTestFullConversionの実行速度が1.6倍に向上 2025-06-29 12:30:34 +09:00
d20f4210c3 refactor: rename api 2025-06-29 01:53:19 +09:00
74d4d412c3 refactor: 辞書検索関連の関数の実装を統合し、名前を整理 (#209)
* perf: 同じloudsに対する検索をバルク処理することによって、処理の効率化を実現

* fix: bug

* test: add typo correction test

* chore: finalize imp;

* feat: update search-related impls
2025-06-27 23:21:11 +09:00
f5037e393c perf: 同じloudsに対する検索をバルク処理することによって、処理の効率化を実現 (#208)
* perf: 同じloudsに対する検索をバルク処理することによって、処理の効率化を実現

* fix: bug

* test: add typo correction test

* chore: finalize imp;
2025-06-27 22:32:46 +09:00
a1cb34e81c test: 「的な」は複合語であり、必ずしも必要ではないので削除 2025-06-04 21:44:06 +09:00
e45671a9f3 test: add basic vocabulary check for all prefixes, to avoid collapse 2025-06-02 23:14:23 +09:00
2569d8475e fix: forget memoryの実装を「粗い」チェックに変更し、表層形の一致のみで判断するようにした 2025-06-02 22:32:17 +09:00
b9cd6833da chore: remove comment 2025-06-01 21:47:23 +09:00
13a7cfad96 feat: add test for TemporalLearningMemoryTrie 2025-06-01 21:44:31 +09:00
7af6d81ef6 feat: add forget memory test 2025-06-01 21:39:33 +09:00
53cb1e3b41 fix: update tests 2025-06-01 21:02:27 +09:00
750d9f87e4 fix: fix failed tests and update for clarity 2025-06-01 20:31:36 +09:00
96b0bcce53 Merge branch 'develop' into codex/modify-learningmanager.init-and-add-error-handling 2025-06-01 20:26:39 +09:00
5a4b3e728e test: verify pause file recovery 2025-05-25 19:36:11 +09:00
5e58458895 Add comma separated number special candidate 2025-05-25 18:40:18 +09:00
9c6e30e8b0 Merge pull request #174 from azooKey/feat/update_emoji16.0
feat: use emoji 16.0
2025-04-25 00:19:16 +09:00
db1d2023ca feat: add test and update 2025-04-19 18:30:01 +09:00
eb040124e7 fix: add more test cases 2025-03-30 17:20:07 +09:00
e8f9eb2f80 Update testConvertToTimeExpression to use await for KanaKanjiConverter initialization
* Change `let converter = KanaKanjiConverter()` to `let converter = await KanaKanjiConverter()`
2025-03-30 16:58:10 +09:00
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
19dbbccd9f Add test cases for convertToTimeExpression function
* **Test cases**
  - Create `KanaKanjiConverter` instance
  - Use `makeDirectInput` to create `ComposingText` instances for test cases
  - Call `convertToTimeExpression` function with different inputs
  - Verify the results using `XCTAssertEqual` and `XCTAssertTrue`

* **Helper function**
  - Add `makeDirectInput(direct input: String) -> ComposingText` helper function

* **Concurrency**
  - Use `await` for the call of `convertToTimeExpression`
  - Call `convertToTimeExpression` outside of XCTest function
2025-03-30 16:55:34 +09:00
65ac2fa3aa Update testConvertToTimeExpression function to use await for convertToTimeExpression calls
* Ensure `convertToTimeExpression` function is called asynchronously in all test cases
2025-03-30 16:48:17 +09:00
ac8dfc8dc3 Update test cases for current convertToTimeExpression signature
* Add makeDirectInput function to create ComposingText instances
* Update testConvertToTimeExpression to use makeDirectInput for input conversion
2025-03-30 16:44:45 +09:00
3b6d63c8d3 Add async/await to test functions in TimeExpressionTests.swift
* **testConvertToTimeExpression**
  - Change function signature to `async throws`
  - Initialize `KanaKanjiConverter` with `await`

* **testToTimeExpressionCandidates**
  - Change function signature to `async throws`
  - Initialize `KanaKanjiConverter` with `await`
2025-03-30 16:38:22 +09:00
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
ebaa31721c refactor: clear Graph-based input impls 2025-03-08 18:17:21 +09:00
531c6fe0fb feat: SwiftNGramWithMarisaTrieへの依存を除去し、内部の実装をターゲットとして追加 (#153) 2025-02-09 20:09:01 +09:00
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
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
84dfb9fe97 fix: testコードでのエラーを修正 2024-09-28 17:35:21 +09:00
fbf09a76eb feat: エスケープされた辞書名をサポート(v2.3.b2) (#106)
* feat: support v2.3.b2 dictionary (https://github.com/ensan-hcl/azooKey_dictionary_storage/pull/3)

* update to v2.3.b2
2024-06-23 17:53:13 +09:00
c2e88ae720 [Fix] 漢数字周りのエラーを修正 (#104)
* fix: 漢数字変換が正しくない問題を修正

* test: add check for long number inptu
2024-06-20 23:55:50 +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
861ac7a026 feat: MetadataのAPIをより柔軟にした (#89) 2024-05-04 11:56:09 +09:00
a5e794d858 [Experimental] 削除操作についてもグラフベースに変更 (#79)
* switch to ComposingTextV2

* delete操作を実装
2024-04-09 01:01:12 +09:00
afabe8a734 implement ComposingTextV2 for practical use (#78) 2024-04-09 00:16:37 +09:00
7a3f1d3c3c [Experimental] ConvertGraphの差分ベース構築を実装 (#77)
* 差分ビルドを実装

* テストケース追加
2024-04-07 23:51:58 +09:00
2e341ea40c format 2024-03-31 01:35:52 +09:00
ac3b8cd4bf _experimental_additionalの実装にも反映 2024-03-31 01:35:32 +09:00