Skip to main content

A text normalization package for Icelandic

Project description

Run pip install regina-normalizer

In a python shell, run:

import regina_normalizer.normalizer

Input string

normalizer.input_string({text_string}, {domain})

Example:

normalizer.input_string("Leikurinn fór 2-2 fyrir KR.", "sport")

Leikurinn fór tvö tvö fyrir K R .

Input file

normalizer.input_file({input_file}, {output_file}, "other")

Example:

normalizer.input_file("input.txt", "output.txt", "other")

input.txt:

Símanr er 888-3492, en hjá þér?
Þetta ætti að taka 2-3 klst.```

output.txt

```Þetta þarf að norma að minnsta kosti tvö x . Ég verð þriggja ára í sumar . Símanúmer er átta átta átta <sil> þrír fjórir níu tveir , en hjá þér ? Þetta ætti að taka tvö til þrjár klukkustundir .```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

regina-normalizer-0.0.6.tar.gz (42.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

regina_normalizer-0.0.6-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file regina-normalizer-0.0.6.tar.gz.

File metadata

  • Download URL: regina-normalizer-0.0.6.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.13

File hashes

Hashes for regina-normalizer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 23e324e2d2885121afb79484698d28f08bb946054d156178e436412452904182
MD5 c307428cebb59460413d5a5bd0ee93a1
BLAKE2b-256 5b117a3c0817f87676ca42d63769bacc8a9b6b9face2b6d7db37c3dadf2eb42d

See more details on using hashes here.

File details

Details for the file regina_normalizer-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: regina_normalizer-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 39.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.13

File hashes

Hashes for regina_normalizer-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e31d3f46ced7a22458a399cccfcca2925da5a8c975548a5a2a2fa69889ded78d
MD5 347d9a1129dbcc3238f7e76a3a230300
BLAKE2b-256 d379111f46bd9c9047f12fc0bb69d6123f6b714fc5bf9891af86a20a53e6c99c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page