Skip to content

Commit

Permalink
Adapt to PR #322
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Sep 26, 2019
1 parent 0df9735 commit 91136a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_backend_fasttext.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_fasttext_train_nodocuments(tmpdir, datadir, project):
fasttext_type = annif.backend.get_backend("fasttext")
fasttext = fasttext_type(
backend_id='fasttext',
params={
config_params={
'limit': 50,
'dim': 100,
'lr': 0.25,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend_pav.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_pav_train_nodocuments(tmpdir, datadir, project):
pav_type = annif.backend.get_backend("pav")
pav = pav_type(
backend_id='pav',
params={'limit': 50, 'min-docs': 2, 'sources': 'dummy-fi'},
config_params={'limit': 50, 'min-docs': 2, 'sources': 'dummy-fi'},
datadir=str(datadir))

empty_file = tmpdir.ensure('empty.tsv')
Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend_vw_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_vw_multi_train_and_learn_nodocuments(datadir, tmpdir, project):
vw_type = annif.backend.get_backend('vw_multi')
vw = vw_type(
backend_id='vw_multi',
params={
config_params={
'chunksize': 4,
'learning_rate': 0.5,
'loss_function': 'hinge'},
Expand Down

0 comments on commit 91136a6

Please sign in to comment.