diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6f26455..24da56ae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,11 @@ name: build on: [push, pull_request] +permissions: + contents: read # to fetch code (actions/checkout) + # TODO: This is probably needed (?), but will not work for PR (and if possible, would give too much permissions?)? + # actions: write # to upload artifact for accuracy report diff + jobs: build: name: Build project @@ -9,12 +14,12 @@ jobs: steps: - name: Check out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: - distribution: 'adopt' + distribution: 'temurin' java-version: 11 cache: 'gradle' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ce6d894..b80068b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,18 +5,22 @@ on: tags: - v1.* +permissions: + contents: write # to fetch code and create release + + jobs: release: runs-on: ubuntu-latest steps: - name: Check out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: - distribution: 'adopt' + distribution: 'temurin' java-version: 11 cache: 'gradle' diff --git a/accuracy-reports/lingua/Afrikaans.txt b/accuracy-reports/lingua/Afrikaans.txt index 900fffe4..62ea55a5 100644 --- a/accuracy-reports/lingua/Afrikaans.txt +++ b/accuracy-reports/lingua/Afrikaans.txt @@ -2,7 +2,7 @@ Legend: 'low accuracy mode | high accuracy mode' ->>> Accuracy on average: 64.37% | 78.73% +>>> Accuracy on average: 99.37% | 78.73% >> Detection of 1000 single words (average length: 8 chars) Accuracy: 37.80% | 58.50% @@ -16,4 +16,4 @@ Erroneously classified as DUTCH: 13.40% | 11.00%, ENGLISH: 0.80% | 1.30%, GERMAN Accuracy: 92.90% | 96.80% Erroneously classified as DUTCH: 5.10% | 2.60%, GERMAN: 0.20% | 0.20%, LATIN: 0.10% | 0.10%, ENGLISH: 0.20% | 0.10%, DANISH: 0.00% | 0.10%, SOTHO: 0.00% | 0.10%, GANDA: 0.10% | 0.00%, BOKMAL: 0.20% | 0.00%, WELSH: 0.20% | 0.00%, ESTONIAN: 0.40% | 0.00%, CATALAN: 0.10% | 0.00%, TSWANA: 0.10% | 0.00%, FINNISH: 0.10% | 0.00%, HUNGARIAN: 0.10% | 0.00%, TSONGA: 0.10% | 0.00%, YORUBA: 0.10% | 0.00% ->> Exact values: 64.36666666666666 37.8 62.4 92.9 78.73333333333333 58.5 80.9 96.8 \ No newline at end of file +>> Exact values: 64.36666666666666 37.8 62.4 92.9 78.73333333333333 58.5 80.9 96.8