From d15e544e716fccc14a6e21338fc2dcb8dd0406d7 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 22 May 2025 12:14:21 -0700 Subject: [PATCH 1/3] Update: update readme.md and examples --- README.md | 3 +++ examples/main.go | 2 ++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index fb06b28..4741666 100755 --- a/README.md +++ b/README.md @@ -87,6 +87,9 @@ var ( ) func main() { + // keep the origin capital letter + // gse.ToLower = false + var seg1 gse.Segmenter seg1.DictSep = "," err := seg1.LoadDict("./testdata/test_en.txt") diff --git a/examples/main.go b/examples/main.go index b751fa5..bb3788d 100755 --- a/examples/main.go +++ b/examples/main.go @@ -23,6 +23,8 @@ var ( func main() { flag.Parse() + // keep the origin capital letter + // gse.ToLower = false // Loading the default dictionary seg.LoadDict() From 4cc9ba079c038a1113901e953f9172ca46ea2507 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sun, 8 Jun 2025 10:40:36 -0700 Subject: [PATCH 2/3] Update: unify and clean License to Apache2.0 --- CONTRIBUTING.md | 12 +++++------- README.md | 4 ++-- dict_1.16.go | 6 +++--- dictionary.go | 6 +++--- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c6e4d26..b54b5ad 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,20 +30,18 @@ Before sending code out for review, run all the tests for the whole tree to make In addition to the owner, Changes to Ego must be reviewed before they are accepted, no matter who makes the change even if it is a maintainer. We use GitHub's pull request workflow to do that and we also use [LGTM](http://lgtm.co) to ensure every PR is reviewed by vz or least 2 maintainers. - ## Sign your work -The sign-off is a simple line at the end of the explanation for the patch. Your signature certifies that you wrote the patch or otherwise have the right to pass it on as an open-source patch. +The sign-off is a simple line at the end of the explanation for the patch. Your signature certifies that you wrote the patch or otherwise have the right to pass it on as an open-source patch. ## Maintainers -To make sure every PR is checked, we got team maintainers. A maintainer should be a contributor of Ego and contributed at least 4 accepted PRs. +To make sure every PR is checked, we got team maintainers. A maintainer should be a contributor of Ego and contributed at least 4 accepted PRs. ## Owners Since Ego is a pure community organization without any company support, Copyright 2016 The go-ego Project Developers. - ## Versions Ego has the `master` branch as a tip branch and has version branches such as `v0.30.0`. `v0.40.0` is a release branch and we will tag `v0.40.0` for binary download. If `v0.40.0` has bugs, we will accept pull requests on the `v0.40.0` branch and publish a `v0.40.1` tag, after bringing the bug fix also to the master branch. @@ -60,9 +58,9 @@ Code that you contribute should use the standard copyright header: // https://github.com/go-ego/gse/blob/master/LICENSE // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed +// http://www.apache.org/licenses/LICENSE-2.0> +// +// This file may not be copied, modified, or distributed // except according to those terms. ``` diff --git a/README.md b/README.md index 4741666..b53063d 100755 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ How to use it with elasticsearch? ## License -Gse is primarily distributed under the terms of "both the MIT license and the Apache License (Version 2.0)". -See [LICENSE-APACHE](http://www.apache.org/licenses/LICENSE-2.0), [LICENSE-MIT](https://github.com/go-vgo/robotgo/blob/master/LICENSE). +Gse is primarily distributed under the terms of "the Apache License (Version 2.0)". +See [LICENSE-APACHE](http://www.apache.org/licenses/LICENSE-2.0), [LICENSE](https://github.com/go-vgo/robotgo/blob/master/LICENSE). Thanks for [sego](https://github.com/huichen/sego) and [jieba](https://github.com/fxsjy/jieba)([jiebago](https://github.com/wangbin/jiebago)). diff --git a/dict_1.16.go b/dict_1.16.go index c6fe8ab..0b17a5c 100644 --- a/dict_1.16.go +++ b/dict_1.16.go @@ -3,9 +3,9 @@ // https://github.com/go-ego/gse/blob/master/LICENSE // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed +// http://www.apache.org/licenses/LICENSE-2.0> +// +// This file may not be copied, modified, or distributed // except according to those terms. package gse diff --git a/dictionary.go b/dictionary.go index 9ce5dd1..1da44fe 100755 --- a/dictionary.go +++ b/dictionary.go @@ -6,9 +6,9 @@ // https://github.com/go-ego/gse/blob/master/LICENSE // // Licensed under the Apache License, Version 2.0 or the MIT license -// , at your -// option. This file may not be copied, modified, or distributed +// http://www.apache.org/licenses/LICENSE-2.0> +// +// This file may not be copied, modified, or distributed // except according to those terms. package gse From f07116d1cdbffbc29650839a4a451e090098b08e Mon Sep 17 00:00:00 2001 From: vcaesar Date: Sat, 28 Feb 2026 09:29:25 -0800 Subject: [PATCH 3/3] Update: update and fixed CI --- .github/workflows/go.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 3dc3a2f..af08028 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -5,19 +5,19 @@ jobs: # name: build strategy: matrix: - go: [1.24.x, 1.25.x] + go: [1.25.x, 1.26.x] os: [macOS-latest, windows-latest, ubuntu-latest] runs-on: ${{ matrix.os }} steps: - name: Set up Go ${{ matrix.go }} - uses: actions/setup-go@v1 + uses: actions/setup-go@v6 with: go-version: ${{ matrix.go }} id: go - name: Check out code into the Go module directory - uses: actions/checkout@v1 + uses: actions/checkout@v6 - name: Get dependencies run: |