Hoppa till huvudinnehåll
Språkbanken Text är en avdelning inom Språkbanken.

swe-lemmatization-stanza-stanzalem

Citering Information

Språkbanken Text (2022). swe-lemmatization-stanza-stanzalem (uppdaterad: 2022-08-10). [Analysis]. Språkbanken Text.
BibTeX
Annotering av grundformer (lemman) med Stanza för svenska tränat på SUC3

In 2020, the Stanza tool was trained and tested the SUC3 corpus in order to create a high-quality analysis. Currently (in 2024), this analysis is available in Sparv, but it is not provided by default, since it is not fully compatible with SALDO-style lemmas. This model's advantage is that it can be used to lemmatize any token, including out-of-vocabulary tokens.

Exempel

This analysis is used with Sparv. Check out Sparv's quick start guide to get started!

To use this analysis, add the following line under export.annotations in the Sparv corpus configuration file:

- <token>:stanza.baseform  # Baseform from Stanza

For more info on how to use Sparv, check out the Sparv documentation.

Example output:

<token baseform="det">Det</token>
<token baseform="här">här</token>
<token baseform="vara">är</token>
<token baseform="en">en</token>
<token baseform="korpus">korpus</token>
<token baseform=".">.</token>

Utvärderingsresultat

Accuracy = 0.99

Övriga referenser

  • Stanza: Peng Qi, Yuhao Zhang, Yuhui Zhang, Jason Bolton and Christopher D. Manning. 2020

  • Stanza: A Python Natural Language Processing Toolkit for Many Human Languages. In Association for Computational Linguistics (ACL) System Demonstrations. 2020

  • SUC3: https://spraakbanken.gu.se/en/resources/suc3

Typ

  • Analys

Uppgift

  • lemmatization

Enhet

  • token

Verktyg

Stanza

Modell

Taggmängd

Tränad på

Nyckelord

  • stanza

Skapad

2020-12-07

Uppdaterad

2022-08-10

Kontakt

Språkbanken Text
sb-info@svenska.gu.se