Skip to main content

Tool for word sense disambiguation (WSD) based on SALDO, ported to Rust.

Project description

saldowsd-rs

PyPI version PyPI - Python Version

Maturity badge - level 2 Stage

Code Coverage

CI(check) CI(release) CI(scheduled) CI(test)

A rewrite of the Java app saldowsd.jar in sparv-wsd in Rust.

Usage

Build from source

To build saldowsd from source:

cargo build --release

After the build succeeds, you can find the binary in ./target/release/saldowsd.

Command-line interface

The supported interface as of today:

> ./target/release/saldowsd --help
Usage: saldowsd [OPTIONS] --format <FORMAT> <COMMAND>

Commands:
  vector-wsd
  help        Print this message or the help of the given subcommand(s)

Options:
      --format <FORMAT>          Format of the output [possible values: sbxml, tab, eval]
      --batch-size <BATCH_SIZE>  The size of each batch [default: 1]
      --max-sen <MAX_SEN>        The maximum sense [default: 4294967295]
  -v, --verbose...               Verbosity
  -h, --help                     Print help
  -V, --version                  Print version

Currently supported command is vector-wsd:

Usage: saldowsd --format <FORMAT> vector-wsd [OPTIONS] --context-width <CONTEXT_WIDTH> --sv-file <SV_FILE> --cv-file <CV_FILE>

Options:
      --decay
      --s1-prior <S1_PRIOR>            [default: 0]
      --context-width <CONTEXT_WIDTH>
      --sv-file <SV_FILE>
      --cv-file <CV_FILE>
  -h, --help                           Print help
  -V, --version                        Print version

Development

You must have Rust and git-lfs installed.

Clone the repository

Clone this repo with recursing submodules.

git clone --recurse-submodules https://github.com/spraakbanken/wsd-rs.git

or, if you are using ssh:

git clone --recurse-submodules git@github.com:spraakbanken/wsd-rs.git

or, if using GitHub cli:

gh repo clone spraakbanken/wsd-rs -- --recurse-submodules

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

saldowsd-0.2.3.tar.gz (37.1 kB view details)

Uploaded Source

Built Distributions

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

saldowsd-0.2.3-py3-none-win_arm64.whl (880.5 kB view details)

Uploaded Python 3Windows ARM64

saldowsd-0.2.3-py3-none-win_amd64.whl (951.5 kB view details)

Uploaded Python 3Windows x86-64

saldowsd-0.2.3-py3-none-musllinux_1_1_x86_64.whl (1.1 MB view details)

Uploaded Python 3musllinux: musl 1.1+ x86-64

saldowsd-0.2.3-py3-none-musllinux_1_1_armv7l.whl (976.1 kB view details)

Uploaded Python 3musllinux: musl 1.1+ ARMv7l

saldowsd-0.2.3-py3-none-manylinux_2_28_aarch64.whl (991.9 kB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

saldowsd-0.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

saldowsd-0.2.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (960.8 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARMv7l

saldowsd-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl (1.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64musllinux: musl 1.1+ ARM64

saldowsd-0.2.3-py3-none-macosx_11_0_arm64.whl (983.9 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

saldowsd-0.2.3-py3-none-macosx_10_12_x86_64.whl (1.1 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

saldowsd-0.2.3-py3-none-linux_armv6l.whl (998.9 kB view details)

Uploaded Python 3

File details

Details for the file saldowsd-0.2.3.tar.gz.

File metadata

  • Download URL: saldowsd-0.2.3.tar.gz
  • Upload date:
  • Size: 37.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.3

File hashes

Hashes for saldowsd-0.2.3.tar.gz
Algorithm Hash digest
SHA256 6f4170ac3fb4ba08f12d1a1c457988255655305c0e6d1abc7e33e0cf89ecfd6e
MD5 b9f7b09141e61281b5ac8bbc450c545d
BLAKE2b-256 b88d59246ff4fb1677048754a97b616670a357d1f88582b5f64c7ef57091f9db

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-win_arm64.whl.

File metadata

  • Download URL: saldowsd-0.2.3-py3-none-win_arm64.whl
  • Upload date:
  • Size: 880.5 kB
  • Tags: Python 3, Windows ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.3

File hashes

Hashes for saldowsd-0.2.3-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 dec7d254e655454e2539044b79d39a08aeff8fb812c82a1cc3ecf6e7b4ebd0f9
MD5 f1834ae1fcf01265b36ea7cad9c63e79
BLAKE2b-256 9bbfc1776055be5dac829d11b31b36551b1eb09d615b2c2455b1edc39b44db9d

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: saldowsd-0.2.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 951.5 kB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.3

File hashes

Hashes for saldowsd-0.2.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 38b6674127ce7601de42cc1c2f119a8d160d78f5f444125dfb3e6b84d0e9f5d9
MD5 42fbf8f5494f55e188f8e1b61b5cabb9
BLAKE2b-256 35eb1001465522bec8ab979fee330b77432c932aead26fd760b491d7e76833fd

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ffa7dcdadaabdccae9fc6daf0c7b67143a6d0abe8ff22ca0b3ef99795bef7bb6
MD5 55cca5feb72b4aaba9122e5bda02db0e
BLAKE2b-256 1681cb23904fed0b3479f0d13f50d312f8bfa35284d727ae24882e5c0b7aa6ab

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-musllinux_1_1_armv7l.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-musllinux_1_1_armv7l.whl
Algorithm Hash digest
SHA256 43ea0318196d652fb52c11e0c6ce6489ddc13f93f924c891bc6aa256de2615cc
MD5 5ec503dcc2fb92775e479e07e4eb6b36
BLAKE2b-256 9830fff9a7788ee19cff581181f62a1c3a501adca676788dcab12836d408c6e4

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 705784fd9834fbf7d6adb3113e6f55ae37fdad9016d679b9c11b0e02874da133
MD5 030929d27dff7ef76c60eac2bd078761
BLAKE2b-256 7457546715ad34ff624cd95177df4e95c0768637f6568431399c67551755a499

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1d76d599f4baa81d1fbe952267bf1e624e53ac24b5652aaae6993e436a9f7aa4
MD5 4be94ae7a7a253f0ce6e7ea52633c789
BLAKE2b-256 23c51623e37ea24fcba62482a373a0aea676b444e80a550f8dd59dd21d465abe

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 ccc059ca03b5c4dc5fec4cf5ded80f6100ebc6ef326165347603a9b8b5723a6d
MD5 cac22792c8e19ba3da8e193c0b17fba1
BLAKE2b-256 1e408524e8656f17acf343ec6e3a30502488710bc8bbe8fe14ab2ca948f26bd0

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 1e391526ce8afc307c3da10083c5b478418d81c658b21ede50248152f25b537a
MD5 18380255d6c14b95d4a1629a2813dba3
BLAKE2b-256 9bc0d141cc23d3fb72ecdd2bc9bdd8dff72c9ce7a24330fdf1dbdbf2f41bb1c4

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7a7920f2e2cc5deb9d006d5d71f419419279c1358af934a11958aacac762743e
MD5 757f08b63dfbf94166db1291c2ecb141
BLAKE2b-256 5174d379e79e555400af87bed32ca0936cfccb9ae306a41210de75f80306cdd3

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 479b27cb60aa6886f2671dbcc6441ea9c920b93e561838ef9d0f6e8e8b18bbde
MD5 c869dd540d27739ce6d3d2870f4cbd1b
BLAKE2b-256 098a352d7aeb75c957170ae497a2584e1e839c6b94f09181ea38d894c26c08fe

See more details on using hashes here.

File details

Details for the file saldowsd-0.2.3-py3-none-linux_armv6l.whl.

File metadata

File hashes

Hashes for saldowsd-0.2.3-py3-none-linux_armv6l.whl
Algorithm Hash digest
SHA256 17808d468964ea78cb26a0f1cacf91a08b42da7941a31c79b82c6debab701e80
MD5 48a7d402eda0fd55481e1e69092843ac
BLAKE2b-256 3d9a71a26173854501b8b355a165ceb783df0829b73609c1c0afcde21c092d44

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