diff --git a/.github/workflows/arm64_centos7.yml b/.github/workflows/arm64_centos7.yml index 40d28e9b..ad3a8514 100644 --- a/.github/workflows/arm64_centos7.yml +++ b/.github/workflows/arm64_centos7.yml @@ -44,7 +44,7 @@ jobs: KIWI_ARCH_TYPE=balanced ./build/kiwi-cli-* -m ./models/base -e -o test.out kowiki1000.txt KIWI_ARCH_TYPE=neon ./build/kiwi-cli-* -m ./models/base -e -o test.out kowiki1000.txt - name: Archive binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts Arm64-Centos7 path: | diff --git a/.github/workflows/centos7.yml b/.github/workflows/centos7.yml index f381dca1..75c45bc3 100644 --- a/.github/workflows/centos7.yml +++ b/.github/workflows/centos7.yml @@ -44,7 +44,7 @@ jobs: ./build/kiwi-evaluator -m ./models/base eval_data/*.txt --sbg -o eval_results/ - run: tar -zcvf arts.tgz build/*kiwi* build/test/*kiwi* eval_results/*.txt build/bindings/java/*.jar - name: Archive binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts Centos7 path: arts.tgz diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 28cf8b7e..d3d7468d 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -80,7 +80,7 @@ jobs: KIWI_ARCH_TYPE=neon ./build/kiwi-cli-* -m ./models/base -e -o test.out --typos 6 kowiki1000.txt fi - name: Archive binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts ${{ matrix.name }} path: | diff --git a/.github/workflows/ppc64le_centos7.yml b/.github/workflows/ppc64le_centos7.yml index 310915c2..a0a88a54 100644 --- a/.github/workflows/ppc64le_centos7.yml +++ b/.github/workflows/ppc64le_centos7.yml @@ -32,7 +32,7 @@ jobs: cp -r build /artifacts/ cp -r eval_results /artifacts/ - name: Archive binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts PPC64LE-Centos7 path: | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index f6b9dc44..34742212 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -75,7 +75,7 @@ jobs: KIWI_ARCH_TYPE=avx512bw ./build/kiwi-cli-* -m ./models/base -e -o test.out --sbg kowiki1000.txt KIWI_ARCH_TYPE=avx512bw ./build/kiwi-cli-* -m ./models/base -e -o test.out --typos 6 kowiki1000.txt - name: Archive binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts ${{ matrix.name }} path: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d828a746..ac4ea5cf 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -38,7 +38,7 @@ jobs: .\build\Release\kiwi-evaluator.exe -m .\models\base (Get-ChildItem eval_data\*.txt | Select-Object -Expand FullName) -o eval_results\ .\build\Release\kiwi-evaluator.exe -m .\models\base --sbg (Get-ChildItem eval_data\*.txt | Select-Object -Expand FullName) -o eval_results\ - name: Archive binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts ${{ matrix.os }} ${{ matrix.arch }}bit path: | diff --git a/src/KiwiBuilder.cpp b/src/KiwiBuilder.cpp index 06b47b86..f522ac25 100644 --- a/src/KiwiBuilder.cpp +++ b/src/KiwiBuilder.cpp @@ -2126,7 +2126,7 @@ Kiwi KiwiBuilder::build(const TypoTransformer& typos, float typoCostThreshold) c estimatedNodeSize += f->first.size() - commonPrefix; prevForm = &f->first; } - ret.typoForms.emplace_back(0, 0, 0, hash); + ret.typoForms.emplace_back(0, 0, hash); ret.typoPtrs.emplace_back(ret.typoPool.size()); formTrie.reserveMore(estimatedNodeSize);