Skip to content

Commit 9eb9a63

Browse files
committed
Initial clean commit
0 parents  commit 9eb9a63

File tree

131 files changed

+50739
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+50739
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* linguist-vendored
2+
*.py linguist-vendored=false
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. task description [e.g. "I want to train a translation system from English to French on WMT14 data."]
16+
2. configuration file [e.g. my_config.yaml]
17+
3. code call [e.g. python3.5 -m joeynmt train my_config.yaml]
18+
19+
**Logged output**
20+
If possible, please add the training log and validation reports or excerpts of them.
21+
22+
**Expected behavior**
23+
A clear and concise description of what you expected to happen.
24+
25+
**System (please complete the following information):**
26+
- OS: [e.g. iOS]
27+
- CPU / GPU
28+
- Python Version
29+
30+
**Additional context**
31+
Add any other context about the problem here.

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: build
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the main branch
8+
push:
9+
branches: [ main ]
10+
pull_request:
11+
branches: [ main ]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17+
jobs:
18+
# This workflow contains a single job called "build"
19+
build:
20+
# The type of runner that the job will run on
21+
runs-on: ubuntu-latest
22+
23+
# Steps represent a sequence of tasks that will be executed as part of the job
24+
steps:
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- uses: actions/checkout@v3
27+
28+
# Set up Python 3.10
29+
- name: Set up Python 3.10
30+
uses: actions/setup-python@v3
31+
with:
32+
python-version: '3.10'
33+
34+
# Install packages
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
python -m pip install --upgrade torch --extra-index-url https://download.pytorch.org/whl/cpu
39+
python -m pip install -e .
40+
41+
# Check code format
42+
- name: Lint
43+
run: |
44+
yapf -dr joeynmt test/unit scripts/*.py
45+
pylint --rcfile=.pylintrc joeynmt test/unit scripts/*.py
46+
flake8 --max-line-length 88 joeynmt test/unit scripts/*.py
47+
48+
# Run unittest
49+
- name: Test
50+
run: |
51+
python -m unittest

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.ipynb_checkpoints
2+
.idea/*
3+
build/*
4+
dist/*
5+
*.egg-info/*
6+
docs/build/*
7+
__pycache__
8+
*.pyc
9+
jnmt

0 commit comments

Comments
 (0)