-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from ku-nlp/v2.1.0
v2.1.0
- Loading branch information
Showing
155 changed files
with
5,233 additions
and
3,294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
name: Build the project | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
max-parallel: 4 | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
python-version: [ "3.8", "3.9", "3.10", "3.11" ] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry | ||
run: | | ||
pipx install poetry | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- name: Install dependencies | ||
run: | | ||
poetry install --no-interaction --without dev,test | ||
- name: Build KWJA | ||
run: | | ||
poetry build | ||
- name: Install KWJA from wheel (non-Windows) | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
run: | | ||
pip3 install dist/*.whl | ||
- name: Install KWJA from wheel (Windows) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: | | ||
$whlFile = (Get-ChildItem -Path dist -Filter *.whl).FullName | ||
pip3 install $whlFile | ||
shell: pwsh | ||
- name: Run KWJA (non-Windows) | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
run: | | ||
kwja --version | ||
kwja --help | ||
kwja --tasks typo,senter,char,word --model-size tiny --text "自然言語処理" | ||
kwja --tasks typo,senter,seq2seq,word --model-size tiny --text "自然言語処理" | ||
- name: Run KWJA (Windows) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
run: | | ||
$env:PYTHONUTF8 = "1" | ||
kwja --version | ||
kwja --help | ||
kwja --tasks typo,senter,char,word --model-size tiny --text "自然言語処理" | ||
kwja --tasks typo,senter,seq2seq,word --model-size tiny --text "自然言語処理" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,10 @@ on: | |
- reopened | ||
|
||
jobs: | ||
build: | ||
typos: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: typos-action | ||
uses: crate-ci/[email protected] | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Check spelling | ||
uses: crate-ci/typos@master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.