Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d284593

Browse files
committedFeb 18, 2025·
Repo // Change license to LGPLv3.
1 parent 3fd9a4b commit d284593

12 files changed

+280
-72
lines changed
 

‎LICENSE

+252-22
Large diffs are not rendered by default.

‎Megrez.Tests/MegrezTests.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System;
86
using System.Collections.Generic;

‎Megrez.Tests/SimpleLM.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System.Collections.Generic;
86
using System.Linq;

‎Megrez/src/0_CSharpExtensions.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
#pragma warning disable CS1591
86

‎Megrez/src/1_Compositor.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System;
86
using System.Collections.Generic;

‎Megrez/src/2_Walker.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System;
86
using System.Collections.Generic;

‎Megrez/src/3_KeyValuePaired.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System;
86
using System.Collections.Generic;

‎Megrez/src/4_SpanUnit.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System;
86
using System.Collections.Generic;

‎Megrez/src/5_Node.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System;
86
using System.Collections.Generic;

‎Megrez/src/6_LangModel.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System.Collections.Generic;
86

‎Megrez/src/7_Unigram.cs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
// CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
2-
// Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
3-
// Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
1+
// (c) 2023 and onwards The vChewing Project (LGPL v3.0 License or later).
42
// ====================
5-
// This code is released under the MIT license (SPDX-License-Identifier: MIT)
3+
// This code is released under the SPDX-License-Identifier: `LGPL-3.0-or-later`.
64

75
using System;
86
using System.Collections.Generic;

‎README.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,19 @@
77

88
Megrez Engine is a module made for processing lingual data of an input method. This repository is part of Operation Longinus of The vChewing Project.
99

10-
相關使用說明請參見 Swift 版的倉庫的 README.MD。函式用法完全一致。
11-
12-
## 與 Gramambular 2 的區別
13-
14-
敝專案一開始是 Gramambular 2 (Lukhnos Liu 著,MIT License) 的 C# 實作,但經歷了大量修改。主要區別如下:
10+
## 專案特色
1511

1612
- 原生 C# 實作,擁有完備的 .NET 6 支援、也可以用作任何新版 .NET 專案的相依套件(需使用者自行處理對跨執行緒安全性的需求)。
1713
- API 經過重新設計,以陣列的形式處理輸入的 key。而且,在獲取候選字詞內容的時候,也可以徹底篩除橫跨游標的詞。
1814
- 爬軌算法(Walking Algorithm)改為 Dijkstra 的算法,且經過效能最佳化處理、擁有比 DAG-Relax 算法更優的效能。
1915

16+
## 使用說明
17+
18+
`MegrezTests.cs` 展示了詳細的使用方法。
19+
2020
## 著作權 (Credits)
2121

22-
- CSharpened and further development by (c) 2022 and onwards The vChewing Project (MIT License).
23-
- Original Swift programmer: Shiki Suen
24-
- Was initially rebranded from (c) Lukhnos Liu's C++ library "Gramambular 2" (MIT License).
25-
- Walking algorithm (Dijkstra) implemented by (c) 2025 and onwards The vChewing Project (MIT License).
26-
- Original Swift programmer: Shiki Suen
22+
- (c) 2022 and onwards The vChewing Project (LGPL v3.0 License or later).
2723
- The unit tests utilizes certain contents extracted from libvchewing-data by (c) 2022 and onwards The vChewing Project (BSD-3-Clause).
24+
25+
敝專案採雙授權發佈措施。除了 LGPLv3 以外,對商業使用者也提供不同的授權條款(比如允許閉源使用等)。詳情請[電郵聯絡作者](shikisuen@yeah.net)

0 commit comments

Comments
 (0)
Please sign in to comment.