-
-
Notifications
You must be signed in to change notification settings - Fork 50
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 #184 from bab2min/dev/lengthening_typo
장음화 오타 구현
- Loading branch information
Showing
25 changed files
with
855 additions
and
471 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,50 @@ | ||
name: Centos7 | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build-centos7: | ||
name: Centos7 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
lfs: true | ||
- uses: bab2min/run-on-arch-action@multiple-step | ||
id: runcmd | ||
with: | ||
image: quay.io/pypa/manylinux2014_x86_64 | ||
githubToken: ${{ github.token }} | ||
multipleRun: | | ||
- name: Update CMake | ||
run: | | ||
/opt/python/cp310-cp310/bin/pip install cmake | ||
yum install java-1.8.0-openjdk-devel.x86_64 -y | ||
- name: Configure Build | ||
run: mkdir build && cd build && /opt/python/cp310-cp310/bin/cmake -DCMAKE_BUILD_TYPE=Release -DKIWI_JAVA_BINDING=1 .. | ||
- name: Build | ||
run: cd build && make -j2 | ||
- name: Run Unit Test | ||
run: ./build/test/kiwi-test | ||
- name: Run Java Unit Test | ||
run: | | ||
cd bindings/java | ||
curl -OL https://repo1.maven.org/maven2/junit/junit/4.13.2/junit-4.13.2.jar | ||
curl -OL https://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar | ||
javac -cp "*:../../build/bindings/java/*:." -encoding utf-8 kr/pe/bab2min/KiwiTest.java | ||
java -cp "*:../../build/bindings/java/*:." org.junit.runner.JUnitCore kr.pe.bab2min.KiwiTest | ||
- name: Run Evaluator | ||
run: | | ||
mkdir eval_results | ||
./build/kiwi-evaluator -m ./ModelGenerator eval_data/*.txt -o eval_results/ | ||
./build/kiwi-evaluator -m ./ModelGenerator 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 | ||
with: | ||
name: Artifacts Centos7 | ||
path: arts.tgz |
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.