Commit Graph

48 Commits

Author SHA1 Message Date
db1d2023ca feat: add test and update 2025-04-19 18:30:01 +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
199129fd68 lint 2024-03-31 00:11:37 +09:00
35675207a3 split files 2024-03-31 00:10:38 +09:00
5714b320da LookupGraphの差分構築を実装 2024-03-31 00:08:54 +09:00
5e96958577 Remove unused API 2024-03-30 02:01:11 +09:00
e8e3b4f380 add another test case (#70) 2024-03-18 01:05:03 +09:00
30908e1bb1 add document 2024-03-17 23:39:34 +09:00
b6d2817c4d add comments 2024-03-17 22:52:38 +09:00
fef03c9ff7 fix test 2024-03-17 18:33:57 +09:00
a084e86033 giving up differential input graph construction 2024-03-17 18:32:44 +09:00
e9142810cf cleanupのロジックを修正 2024-03-17 12:20:55 +09:00
44cecf2242 差分ビルド用の実装 2024-03-17 12:07:41 +09:00
09914f919b further cleanup 2024-03-17 10:46:23 +09:00
f4e48610a3 Remove unused impl and apply lint 2024-03-17 10:38:45 +09:00
460dd1b214 Now it works as expected 2024-03-17 02:38:38 +09:00
54bce5a5e4 WIP: switching to new architecture 2024-03-17 02:24:55 +09:00
85c3bd3d02 Merge branch 'develop' into feature/improve_convert_graph_impls 2024-03-16 11:56:56 +09:00
2c4af95885 fix build error in swift 5.10 2024-03-06 23:29:41 +09:00
ea0219e66e add failing case 2024-02-27 23:04:19 +09:00
cda10cc87e add more test cases 2024-02-27 01:48:14 +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
0795b8cf84 [Experimental] ConvertGraphを実装し、その上での完全一致変換を実装 (#47)
* ConvertGraphを実装し、その上での完全一致変換を実装

* 名前空間を汚染していたので修正

* Implementation completed (without test)

* move directory to use default dictionary

* fix implementations to enable conversion

* add test cases

* Backward searchで発見された候補を明示的に削除

* fix tests

* simplify
2024-02-24 23:21:44 +09:00
52fc9ae4c2 [Experimental] InputGraphの構造を変更し、LookupGraphによる辞書引きを実装 (#46)
* implement byfix lookup

* find failing test

* implement backward search

* add more test cases

* add new file

* split files

* Improve InputGraph Architecture

* implement dictionary search
2024-02-23 17:51:27 +09:00
784a80c46a [Experimental] InputGraphベースの辞書ルックアップ (#45) 2024-02-23 02:37:59 +09:00
5431bafb27 [WIP] InputGraphベースの入力管理の実装 (#44)
* Test-level implementation of InputGraph

* move file

* implement typo-sensitiveness

* implement input style and input style boundary checking

* fix ci

* fix ci 2
2024-02-22 16:56:22 +09:00
11da533049 Merge branch 'develop' into feature/submodule_integration 2024-02-20 01:06:45 +09:00
a072be91d4 Avoid @MainActor class 2024-02-20 01:05:13 +09:00
bb42d01563 make testMozcEvaluationData macOS-only to avoid build failure in Linux 2024-02-20 00:57:27 +09:00
6f2a5218a2 add submodule and add conversion tests 2024-02-20 00:34:47 +09:00
76d511d3dd switch to async test instead of mainactor testcases 2024-02-19 23:30:32 +09:00
c156f16b9e lint 2023-08-16 18:43:43 +09:00
5c01280fca lint 2023-08-16 18:42:53 +09:00
2a240df7c3 fix template parse logic 2023-08-16 18:38:50 +09:00
aad755da6f Support Strict concurrency 2023-07-23 18:48:20 +09:00
98bc180c17 Move to root 2023-07-23 00:34:27 +09:00