Skip to main content

No project description provided

Project description

RustSim

  • Setup your virtual environment of choice.
  • cd rustsim (home directory of this project)
  • pip install maturin
  • maturin develop
  • python
Python 3.9.16 (main, Jan 11 2023, 10:02:19) 
[Clang 14.0.6 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rustsim
>>> rustsim.run("tests/data/test_set.tsv", "tests/data/closures.tsv")

should yield

TermSetPairwiseSimilarity {
    set_id: "set3",
    original_subject_termset: {
        "apple",
        "orange",
        "banana",
    },
    subject_termset: {
        "fruit",
        "orange",
        "apple",
        "tropical",
        "banana",
    },
    original_object_termset: {
        "mango",
        "banana",
        "cheese",
        "papaya",
        "beef",
    },
    object_termset: {
        "mango",
        "fruit",
        "papaya",
        "banana",
        "cheese",
        "beef",
        "meat",
        "dairy",
        "tropical",
    },
    jaccard_similarity: 0.2727272727272727,
}
TermSetPairwiseSimilarity {
    set_id: "set1",
    original_subject_termset: {
        "apple",
        "orange",
        "banana",
    },
    subject_termset: {
        "fruit",
        "orange",
        "apple",
        "tropical",
        "banana",
    },
    original_object_termset: {
        "apple",
        "orange",
        "banana",
    },
    object_termset: {
        "orange",
        "banana",
        "apple",
        "tropical",
        "fruit",
    },
    jaccard_similarity: 1.0,
}
TermSetPairwiseSimilarity {
    set_id: "set2",
    original_subject_termset: {
        "apple",
        "orange",
        "banana",
    },
    subject_termset: {
        "fruit",
        "orange",
        "apple",
        "tropical",
        "banana",
    },
    original_object_termset: {
        "mango",
        "apple",
        "papaya",
    },
    object_termset: {
        "apple",
        "fruit",
        "papaya",
        "mango",
        "tropical",
    },
    jaccard_similarity: 0.42857142857142855,
}

Troubleshooting

Building for Mac ARM M1 architectures

If a import rustsim results in a ImportError warning about incompatible architecture, try the following:

  • Install conda. This guide may be helpful.
  • Set up a virtual environment with conda so that your Python build is aligned with your processor architecture (in this case, ARM). Try something like:
$ conda create -n myenv python=3.9
...setup happens...
$ conda activate myenv

and then proceed as above.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

rustsim-0.1.4-cp310-none-win_amd64.whl (168.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

rustsim-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

rustsim-0.1.4-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (598.3 kB view details)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

rustsim-0.1.4-cp310-cp310-macosx_10_7_x86_64.whl (304.1 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

rustsim-0.1.4-cp39-none-win_amd64.whl (169.1 kB view details)

Uploaded CPython 3.9 Windows x86-64

rustsim-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

rustsim-0.1.4-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (598.9 kB view details)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

rustsim-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl (304.4 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

rustsim-0.1.4-cp38-none-win_amd64.whl (168.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

rustsim-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

rustsim-0.1.4-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (599.3 kB view details)

Uploaded CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

rustsim-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl (304.5 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rustsim-0.1.4-cp37-none-win_amd64.whl (168.7 kB view details)

Uploaded CPython 3.7 Windows x86-64

rustsim-0.1.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

rustsim-0.1.4-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (599.3 kB view details)

Uploaded CPython 3.7m macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

rustsim-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl (304.5 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

Details for the file rustsim-0.1.4-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 93fc5f65b6c3b055aebf5c683ca7caa5f030abf222c3887625b15db9babf9bc7
MD5 da1aad5fca50da95f723dc6745e855aa
BLAKE2b-256 f42cad95efc1e20287c132e7a985cc4d7f70295d08175c625aed3ea99e727d0f

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d1e5189476dd9e559eea95a3649d1ffd5df864bd4eaf72a756620bbcc39e66d
MD5 b182036e4d56d0e851ea776a86713040
BLAKE2b-256 6b401fb8248435309b066cb192e6601aab12251f298b02660639aac82dcf2335

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f67fa9427dad0d3fb8c56ad32c7f72ae9111c10ab440abe65ce9616363c3129a
MD5 7236ba95dadf85783ce152aadf71fc4f
BLAKE2b-256 c9a194514c16a1c1cb9313827cabfe34a5488e818b764a57b66cb301ddfe60f8

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp310-cp310-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 df4c4e9837921fc68af068bd7be735527a79c8a59357adf2790337ceec461812
MD5 f46873732a0e571a4b9413b5c0b0bdc0
BLAKE2b-256 61e030153b41bf139b386d32b67e6504d483de6816547699894ce3518c346831

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp39-none-win_amd64.whl.

File metadata

  • Download URL: rustsim-0.1.4-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 169.1 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.15

File hashes

Hashes for rustsim-0.1.4-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 358f21612c3468589ff3123c756fdbad41596338f35aaa7d12d41c65950f6109
MD5 3c612809d8036598907095f4f12161da
BLAKE2b-256 6e9edb4a5ba37f63ffe2f6c01c506c8d842748e65976617bb866e24743b07319

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4a5a2f74723334fbb358654a9405e291dbc5eef6ba98baf18b5083c092973b9
MD5 ca97018c33b9f7431822eb26d56ac2ef
BLAKE2b-256 716c53efdc71460339aa4ce1daea8463d592a4f9c3e29bf2aa653d7a8fee699d

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e8b7a02eb626f7e044b9228d3d9c28b2d39a410587c27e00dba4afc8857741fa
MD5 9add00cbbb54440c3f6af86e473adbbc
BLAKE2b-256 e7627813bf1c062e6ecc669db7b94ecc5e8609b76cdd390874e01f896f0b0af3

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 57a802d0a70a78e5edb139837890534a9396bed669035b242bbfaaa89124cb5a
MD5 e17b61ed67ceb4f90311cbd979a57ec5
BLAKE2b-256 07f753e6e58870c5a30255d6d1594e50582d1a78df31bcc57b660802ea4b8b14

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp38-none-win_amd64.whl.

File metadata

  • Download URL: rustsim-0.1.4-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 168.8 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.15

File hashes

Hashes for rustsim-0.1.4-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 673ff293c403c3ab102580e7f29c7460d23c9bc56fbc5fb8dbffefc6fc324dbe
MD5 5bc7fce24af88745e54565387b89b2f5
BLAKE2b-256 f33dcac6924e466c40fb1be45a664ed10b9263070db7d4c54136eb1cedec82d9

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9b6fcd3bc0802d2f4b4e46c6239199b65a2d3a874172118cb047c37075d79042
MD5 9843f035d077c0500f848509685e87c6
BLAKE2b-256 293be88028833cc810c6d439f76b5e937d3e8278ec10c63db1ed3e842398555f

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1c15bbaf72239b44f5cde2ca65ded0773098228e6d708c8a79853489393eb1fb
MD5 cdc58bfc033c959f0c33549c0cfda2c7
BLAKE2b-256 4f1f8b5bf7856670e3020cb0ccb9ce73d954145dfa419eef42625c255b3d097e

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 63d95e0055cb4ba625c8fdb73e126559dc7c009804ca9d9f927461084b6cf463
MD5 46195bcf9b2c1c8322ad35667af5ef5f
BLAKE2b-256 9817cf0fe6b8d1bf91fa8ebe1246c31b55bf8e57923259ae844cbe4a5b1f947a

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp37-none-win_amd64.whl.

File metadata

  • Download URL: rustsim-0.1.4-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 168.7 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.15

File hashes

Hashes for rustsim-0.1.4-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 9e362c7f6ad055891a4eee197e01959b3786558adde58247e001b0abf7c675f4
MD5 706f7aa2e39507f7d80bbaf14b280739
BLAKE2b-256 4bf018dcd3605c87e5a89b8a77e2d60ea8ac33c0d19862fb08f292191d3d671f

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 346a48d80c45ffe1632731809047df60b0916912b9fddc7fd5f2543d6a9424fa
MD5 9eb47a5b870ff378aaa5ace5527cdaef
BLAKE2b-256 31481679f0c4445fbfa9ca29b3ecada68307d4122212e387d54e7372e15079a1

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 cddabfc267293dab1a347ab2dd3cb7bcd2b0aedd1bbbbe71095e819d0e6cf890
MD5 dd5fb79e679d42dcb4ccf57d30fbd4b7
BLAKE2b-256 e81fc1811943458223efd775f651923d9766ae94f484d78267f8430758d426b5

See more details on using hashes here.

File details

Details for the file rustsim-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.4-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 142cad6be580d657136424a73d8a827fe79291a0a9be71fa4b87c057d6546ace
MD5 92c98cc66280d2b8d84370e3bbe21681
BLAKE2b-256 c0dd5f05b56efeff08c1fb6cd24104da5207034b50c8fc35bfcf3d4df73a4533

See more details on using hashes here.

Supported by

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