Skip to main content

sbx-swe-sentence-sparv-storsuc

Standard reference Information

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

Analysis citation Information

Språkbanken Text (2021). sbx-swe-sentence-sparv-storsuc (updated: 2021-09-02). [Analysis]. Språkbanken Text. https://doi.org/10.23695/zh22-hf25
BibTeX Additional ways to cite the dataset.
Segments text into sentences, custom-made for Swedish

The sentence segmenter is based on NLTK's PunktWordTokenizer. Sparv's version is custom-made for Swedish by supplying a model built on StorSUC. It is, however, possible to configure the sentence segmenter for other languages.

Example

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.sentence  # Sentence segments

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

Example output:

<sentence>
  <token>Det</token>
  <token>här</token>
  <token>är</token>
  <token>en</token>
  <token>korpus</token>
  <token>.</token>
</sentence>
<sentence>
  <token>Den</token>
  <token>har</token>
  <token>flera</token>
  <token>meningar</token>
  <token>.</token>
</sentence>

Type

  • Analysis

Task

  • sentence segmentation

Unit

  • sentence

Dependencies

External tools

Models

Trained on

Created

2010-12-15

Updated

2021-09-02

Contact

sb-info@svenska.gu.se