Norwegian_idioms / README.md
titae's picture
Update README.md
fae4659 verified
metadata
task_categories:
  - text-generation
  - fill-mask
language:
  - 'no'
  - nb
  - nn
pretty_name: Norwegian Idioms
size_categories:
  - 1K<n<10K
license: cc0-1.0
configs:
  - config_name: default
    data_files:
      - split: test
        path: data.jsonl

Norwegian idioms

This is a dataset that consists of 3537 Norwegian idioms and phrases that appear more than 100 times in the online library of the National Library of Norway.
There are 3455 Bokmål idioms and 88 Nynorsk idioms. In the future, we want to add more Nynorsk idioms.

Idiom completion as an NLP task

The idioms are split into idiom starts (the first N-1 words) and accepted completions (a list of possible last words to complete the idiom). Of the 3245 rows, there are 156 where there are more than one accepted completion.

This dataset can be used to measure a generative language models' ability to complete well known idioms, or as a masked language modelling task.

Idiom frequencies

idiom_freqs/all_idioms_freq.json contain all the idioms and their frequency in the online library as key,value pairs
idiom_freqs/nno_idioms_freq.json contain the Nynorsk idioms and their frequency in the online library as key,value pairs
idiom_freqs/nob_idioms_freq.json contain the Bokmål idioms and their frequency in the online library as key,value pairs

Idiom graphs

There is considerable linguistic overlap between the idioms. For example, though there are 3537 unique idioms, there are only 796 unique starter words.

We have arranged the idioms as trees, where the roots are the start words, and the idioms are found by following a path from a root node to a leaf node.
Example:

"alt": {
    "er": {
        "bare": {
            "fryd": {
                "og": {
                    "gammen": {}
                }
            }
        },
        "klappet": {
            "og": {
                "klart": {}
            }
        },
        "såre": {
            "vel": {}
        }
    },
    "går": {
        "sin": {
            "vante": {
                "gang": {}
            }
        }
    },
}

Here is a tree where "alt" is the root, the idioms "alt er bare fryd og gammen", "alt er klappet og klart", "alt er såre vel" and "alt går sin vante gang" can be found by traversing the tree.
These trees can be found in idiom_graphs/.

There are also flat versions of the trees (where consecutive nodes/words with only one child are merged into word sequences)

Example:

"alt": {
    "er": {
        "bare fryd og gammen": "",
        "klappet og klart": "",
        "såre vel": ""
    },
    "går sin vante gang": "",
}