Skip to content

Commit

Permalink
spacy experimental 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aajanki committed May 7, 2022
1 parent 4bb7a66 commit 7476549
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ source Finnish part-of-speech taggers and lemmatization algorihtms.
### Tested algorithms

* [spaCy](https://spacy.io/) 3.3.0
* [Experimental Finnish model for spaCy](https://github.com/aajanki/spacy-fi) 0.10.0b1
* [Experimental Finnish model for spaCy](https://github.com/aajanki/spacy-fi) 0.10.0
* [FinnPos](https://github.com/mpsilfve/FinnPos/wiki) git commit 81c1f735 (Oct 2019)
* [Simplemma](https://github.com/adbar/simplemma/) 0.6.0
* [Stanza](https://stanfordnlp.github.io/stanza/) 1.4.0
Expand Down
6 changes: 4 additions & 2 deletions plot_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def main():

results_by_model = results.groupby('Model').mean().reset_index()

label_left_lemma = ['FinnPos', 'simplemma', 'spacy-lg']
label_left_lemma = ['Stanza', 'simplemma', 'spacy-lg']

sns.relplot(x='Lemmatization F1', y='Tokens per second',
data=results_by_model, s=80)
Expand All @@ -161,6 +161,8 @@ def main():
plt.savefig(imagedir / 'lemma_f1_speed.png')
plt.close()

label_left_lemma = ['FinnPos', 'simplemma', 'spacy-lg']

sns.relplot(x='Lemmatization aligned accuracy', y='Tokens per second',
data=results_by_model, s=80)
for x, y, text in zip(results_by_model['Lemmatization aligned accuracy'],
Expand All @@ -176,7 +178,7 @@ def main():
plt.savefig(imagedir / 'lemma_acc_speed.png')
plt.close()

label_left_pos = ['Voikko', 'stanza', 'spacy-lg']
label_left_pos = ['Voikko', 'Stanza', 'spacy-lg']

sns.relplot(x='Part-of-speech F1', y='Tokens per second',
data=results_by_model, s=80)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ matplotlib==3.5.1
seaborn==0.11.2
spacy-udpipe==1.0.0
spacy==3.3.0
https://github.com/aajanki/spacy-fi/releases/download/v0.10.0b1/spacy_fi_experimental_web_md-0.10.0b1-py3-none-any.whl
spacy-fi-experimental-web-md==0.10.0
voikko==0.5
typer==0.4.1
stanza==1.4.0
Expand Down

0 comments on commit 7476549

Please sign in to comment.