-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (24 loc) · 830 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# set the OS
sudo: required
dist: trusty
os:
- linux
# set the language
language: python
python:
- "3.6"
# command to install dependencies
install:
- bash .travis_install_ubuntu.sh
- pip install -r requirements.txt
- python -m spacy download en
- pip install .
# command to run tests
script:
# copy the conll data and model from the package to the local folder
- neuroner --fetch_data=conll2003
- neuroner --fetch_data=example_unannotated_texts
- neuroner --fetch_trained_model=conll_2003_en
# ensure that NeuroNER doesn't perform too many epochs (Travis jobs are limited to 50 minutes)
- neuroner --maximum_number_of_epochs=1
- neuroner --train_model=False --maximum_number_of_epochs=1 --experiment_name=test --use_pretrained_model=True --dataset_text_folder=./data/example_unannotated_texts