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.3.tar.gz (42.7 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.3-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: regina-normalizer-0.0.3.tar.gz
  • Upload date:
  • Size: 42.7 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.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for regina-normalizer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 9ef29432caa9398b9c202627911db38eb17a663a96c5e4f529c6c27f0626aee0
MD5 a85568e93b72996def742fc74996733a
BLAKE2b-256 ce9bbb160f62cf46ab2b1207e5d31bd6ad5c317b208df4b0f78dd22a001e518f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: regina_normalizer-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 39.1 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.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for regina_normalizer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f2cf1047520e2b62eff8b6b006c70674b0be452b3e2bb636b3cde92926a0f482
MD5 5cbb17425eeb0caff4df2cc534001b7a
BLAKE2b-256 6f11a5ac78217eba0e26668d9f5d89850f5187679468b20102797ce297734d2c

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