Commit Graph

32 Commits

Author SHA1 Message Date
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
531c6fe0fb feat: SwiftNGramWithMarisaTrieへの依存を除去し、内部の実装をターゲットとして追加 (#153) 2025-02-09 20:09:01 +09:00
Miwa / Ensan
8fe580c793 remove: redundant print 2025-02-09 02:32:02 +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
0f488d987c fix: Zenzaiが無い状態でもユーザ辞書を有効化 2024-09-28 16:57:47 +09:00
Miwa / Ensan
472fe19d41 fix: 既に見た候補の除外を防止 2024-08-10 23:31:39 +09:00
Miwa / Ensan
73d71a02a8 fix: firstClauseResultsとして得られる結果が長さではなくvalueでソートされる挙動を変更 2024-08-10 23:21:50 +09:00
Miwa / Ensan
068585c2a5 feat: make the behavior option 2024-08-07 23:09:37 +09:00
ensan-hcl
445361d6dc feat: add next character prediction API and add it to session cli 2024-08-01 15:57:56 +09:00
Miwa / Ensan
3770633c44 feat: zenz-v2の文脈による条件づけ機能を活かしたAPIを追加 2024-07-31 00:46:39 +09:00
Miwa
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
Miwa / Ensan
c211bc36cd [cli] 完全一致変換のみを出力するモードを追加 (#88)
* cli: add option to report score

* cli: 完全一致変換をサポート
2024-05-04 11:39:20 +09:00
Miwa / Ensan
b02f6eb899 make text replacer customizable (#35) 2024-02-17 22:32:19 +09:00
ensan-hcl
505c0af13f improve uniquing 2024-01-07 15:19:29 +09:00
ensan-hcl
5a7bd0c149 Rename for merge 2023-09-23 14:25:56 +09:00
ensan-hcl
b38e6b6fa4 lint 2023-09-23 01:52:22 +09:00
ensan-hcl
958593dccb Include prediction into learning 2023-09-23 00:19:42 +09:00
ensan-hcl
ae2c193177 Update Prediction logic 2023-09-22 23:00:14 +09:00
ensan-hcl
6c2a93a26c Avoid displaying emoji variations 2023-09-22 19:15:08 +09:00
ensan-hcl
5ec176c215 fix sort 2023-09-19 23:50:07 +09:00
ensan-hcl
7b63c1c8c9 Reorder candidates 2023-09-19 23:47:15 +09:00
ensan-hcl
920e37797c Update valuation 2023-09-19 23:16:59 +09:00
ensan-hcl
a2c522feac fix minor issue 2023-09-19 23:16:33 +09:00
ensan-hcl
7665e4e375 Add Emoji 2023-09-19 23:12:19 +09:00
ensan-hcl
5ec51132ff Uniquify candidates 2023-09-19 22:30:48 +09:00
ensan-hcl
abd896f649 add prediction candidate 2023-09-19 22:08:10 +09:00
ensan-hcl
f163350c0b WIP: implementing zero query prediction 2023-09-19 01:18:36 +09:00
ensan
4e6fbe17e3 feat: promote uppercased characters and refine document 2023-09-15 13:19:04 +09:00