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

sbx-mul-tokenization-sparv-linebreaks

Standardreferens Information

Bird, Steven, Edward Loper and Ewan Klein (2009), Natural Language Processing with Python. O’Reilly Media Inc.

Analyscitering Information

Språkbanken Text (2021). sbx-mul-tokenization-sparv-linebreaks (uppdaterad: 2021-05-07). [Analysis]. Språkbanken Text.
BibTeX
Tokeniserar text utifrån radbrytningar med hjälp av NLTKs RegexpTokenizer

Dokumentationen för NLTKs RegexpTokenizer finns här.

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:

- segment.token  # Token segments

In order to use this tokenizer you need to add the following setting to your Sparv corpus configuration file:

segment:
  token_segmenter: linebreaks

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

Example output:

<token>Det</token>
<token>här</token>
<token>är</token>
<token>en</token>
<token>korpus</token>
<token>.</token>

Typ

  • Analys

Uppgift

  • tokensiering

Enhet

  • token

Beroenden

Externa verktyg

Skapad

2010-12-15

Uppdaterad

2021-05-07

Kontakt

sb-info@svenska.gu.se