Skip to content

Commit

Permalink
Switch test and example configs to use Voikko analyzer for Finnish. P…
Browse files Browse the repository at this point in the history
…art of #37
  • Loading branch information
osma committed Oct 8, 2018
1 parent e2b73ab commit 9a1887d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions projects.cfg.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name=TF-IDF Finnish
language=fi
backends=tfidf
analyzer=snowball(finnish)
analyzer=voikko(fi)
limit=100

[tfidf-sv]
Expand All @@ -25,7 +25,7 @@ limit=100
name=fastText Finnish
language=fi
backends=fasttext
analyzer=snowball(finnish)
analyzer=voikko(fi)
dim=500
lr=0.25
epoch=30
Expand Down
6 changes: 3 additions & 3 deletions tests/projects.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name=Dummy Finnish
language=fi
backends=dummy
analyzer=snowball(finnish)
analyzer=voikko(fi)
key=value

[dummy-en]
Expand Down Expand Up @@ -34,7 +34,7 @@ backends=dummy
name=TF-IDF Finnish
language=fi
backends=tfidf
analyzer=snowball(finnish)
analyzer=voikko(fi)
limit=10

[tfidf-en]
Expand All @@ -60,7 +60,7 @@ chunksize=24
name=fastText Finnish
language=fi
backends=fasttext
analyzer=snowball(finnish)
analyzer=voikko(fi)
dim=100
lr=0.25
epoch=5
Expand Down
4 changes: 2 additions & 2 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def test_get_project_fi(app):
project = annif.project.get_project('dummy-fi')
assert project.project_id == 'dummy-fi'
assert project.language == 'fi'
assert project.analyzer.name == 'snowball'
assert project.analyzer.param == 'finnish'
assert project.analyzer.name == 'voikko'
assert project.analyzer.param == 'fi'
assert len(project.backends) == 1
assert isinstance(project.backends[0][0], annif.backend.dummy.DummyBackend)
assert project.backends[0][1] == 1.0
Expand Down

0 comments on commit 9a1887d

Please sign in to comment.