Skip to main content

sbx-swe-sentence_relation-transformers-superlim2

Analysis citation Information

Språkbanken Text. sbx-swe-sentence_relation-transformers-superlim2 [Analysis]. Språkbanken Text. https://doi.org/10.23695/p25v-fs07
BibTeX Additional ways to cite the dataset.
Determine the logical relation between two sentences

Example

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

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

- <sentence>:sbx_superlim.swenli.label  # None
- <sentence>:sbx_superlim.swenli.certainty  # None

You also need to install the following plugin: sbx_superlim.

For general information on how to install plugins, see here.

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

Example output:

<sentence swenli.certainty="N/A" swenli.label="N/A">
  <token>Ett</token>
  <token>öppet</token>
  <token>Sverige</token>
  <token>Vi</token>
  <token>lever</token>
  <token>i</token>
  <token>en</token>
  <token>orolig</token>
  <token>tid</token>
  <token>,</token>
  <token>där</token>
  <token>människor</token>
  <token>tvingas</token>
  <token>fly</token>
  <token>för</token>
  <token>sina</token>
  <token>liv</token>
  <token>från</token>
  <token>krig</token>
  <token>och</token>
  <token>förtryck</token>
  <token>.</token>
</sentence>
<sentence swenli.certainty="0.663418173789978" swenli.label="contradiction">
  <token>Inte</token>
  <token>sedan</token>
  <token>Andra</token>
  <token>världskriget</token>
  <token>har</token>
  <token></token>
  <token>många</token>
  <token>människor</token>
  <token>varit</token>
  <token></token>
  <token>flykt</token>
  <token>.</token>
</sentence>

Type

  • Analysis

Task

  • relation between two sentences

Unit

  • sentence

Licence

Dependencies

External tools

Models

SweNLI 1.0
Also see https://huggingface.co/datasets/sbx/superlim-2

Keyword

  • transformers
  • huggingface
  • superlim

Contact

sb-info@svenska.gu.se