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.6-cp310-none-win_amd64.whl (173.1 kB view details)

Uploaded CPython 3.10 Windows x86-64

rustsim-0.1.6-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.6-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (604.4 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.6-cp310-cp310-macosx_10_7_x86_64.whl (307.0 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

rustsim-0.1.6-cp39-none-win_amd64.whl (173.3 kB view details)

Uploaded CPython 3.9 Windows x86-64

rustsim-0.1.6-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.6-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (605.4 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.6-cp39-cp39-macosx_10_7_x86_64.whl (307.5 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

rustsim-0.1.6-cp38-none-win_amd64.whl (173.0 kB view details)

Uploaded CPython 3.8 Windows x86-64

rustsim-0.1.6-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.6-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (605.6 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.6-cp38-cp38-macosx_10_7_x86_64.whl (307.7 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rustsim-0.1.6-cp37-none-win_amd64.whl (173.0 kB view details)

Uploaded CPython 3.7 Windows x86-64

rustsim-0.1.6-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.6-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (605.6 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.6-cp37-cp37m-macosx_10_7_x86_64.whl (307.8 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 c4cbe0e9dfc08151424de071cf0651878d18bd7b78c3196791dc5ab1cccfa190
MD5 ac2fb33f0d1bde2cd967f605a1cfc306
BLAKE2b-256 7bc4466f8f40ef0b13879074e710b23ff73cd830e14f52beef5e548f62a7e690

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 58fe91f9bb25a3df92db6c00a9317c00030d650a352bafcfa692924b9457f734
MD5 e3b19df65c5c64e567ac8f0558350b4c
BLAKE2b-256 a8201c293b926698a55aa0fbd5cb5e7811aa9a4fa068cd7b2bf98e8fd8ee04ae

See more details on using hashes here.

File details

Details for the file rustsim-0.1.6-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.6-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 433ef1e4a9edf9b40e3734e7c449d6eba33e9e4f9386cf0faedc5719189fd8a0
MD5 27eba9fc514804ca3278fb3195831abb
BLAKE2b-256 3f62476132c3036c70cc2b9956aae1b9143529c1e3b161e6d31b554590f1dfcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 bcbfc326b75cca69f198bf2621a165cfaf0de57e058a57477f491da0289fc54b
MD5 0d8815d52fb5ca2cd43a5c1cc1c4b057
BLAKE2b-256 8bdff19f07555986a7b8989de66369e5956bf4ff1c515a0ce017b5e14424c313

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.6-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 173.3 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.6-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 688a57f5fb5a10655ae3f534a35626c03082dff3e614fef67696cb9d6bf933dd
MD5 485893578cd145c0260dbe286767e095
BLAKE2b-256 2eaa04a5b7de8c59b062becc0e37e4cbb3ab93675a46346c40e1f2d335715e09

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 37540999a078a717a3b24df22518a29459261f110629ff8602eb15dd4cccabb3
MD5 bff8b375311b8907a377418f1a17586f
BLAKE2b-256 6b39a308741050c1d3c19309edbc7dae5659fc9bacacaceebdcd8cb89086f34d

See more details on using hashes here.

File details

Details for the file rustsim-0.1.6-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.6-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6c1e3059d16df5047c2a0fd2c700be924b1013af9372e9617b33c24b99f0d1f0
MD5 276748acb7283f4e921180dfe7bfb197
BLAKE2b-256 bee077694098a7bf6967cee69a10bbe7176581ed5a667ccd054c03260f8cbe1b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3dba02b212691b78333b6ccf202ca16b3f86f377b9f516300ffb43c382ede614
MD5 b38275a8b70a6e16f8cb583d8e05d06d
BLAKE2b-256 0ce1af35e1152ec83de4fe14e2a59845424fd3764dc16a99e814ca7401c7ea07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.6-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 173.0 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.6-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 cf44d58d27714c33bdbaab0e95474f8a70102b91c2801c93ae059ec8378b89b4
MD5 de9362ba3e885f36d70e11a0e066fb9c
BLAKE2b-256 d96b6913f9d6aecb2dfd28c39ad986dd30d02d9906f699ef9fd89976d679a672

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86f6798c339e1d2af79128fd1514c2ee6f20a2c08a5c7b4adc98837b45443b02
MD5 ac631f5bc1994becef3b1fa41137bf8b
BLAKE2b-256 131aa16f9fad5c69e9d7eda1288d5c3ba17acc0c01235feaf3097b158a194145

See more details on using hashes here.

File details

Details for the file rustsim-0.1.6-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.6-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b20d49795214b7455c08478eaea35d5906426ff3af96a8b5693e6bee31493488
MD5 a6560241d3334d48312abe93028d8ffd
BLAKE2b-256 c35bf38e508fad25204ff97153c3f2cfc93a38b9ee4240f249bd0ee728cc224b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e03d308e406a7c9ce49ba3cf9037d60d11beb78dda0e580290fd164bd9aab780
MD5 972fff68a3f5f942cbfe30664f69bac9
BLAKE2b-256 2b2cd9e441798807ce253d635c7c34814e94509fb619f618e550a1870e978185

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.6-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 173.0 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.6-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 d3672758ffa338957c695a7c7de8c78472168ef3d2fa2cc3a2b378b9b8cdf3a4
MD5 e23348a7a59a44e958adf1a59095cbe9
BLAKE2b-256 5a3790b59257cd8076b8dc00aa03cf454e66d7ebb06786d96651bb5ec7b2509c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1123ac26930421cd770528aef0c2d204559977abf0d382cb2b9d85b6b06d4d51
MD5 c7c80d786bfd82d60beb037d1110738a
BLAKE2b-256 f6afa989f4d0377f6f495f98bf78e98fd9ef651c807f5f4b05bd229950a09007

See more details on using hashes here.

File details

Details for the file rustsim-0.1.6-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.6-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7ef2bd57d2777752662f802854cff8d7edb38766878d6c3adc3e209acafdb0fa
MD5 787917af5e5bdc56b4359ddede914c45
BLAKE2b-256 a5842496058bb92f2bbb2a90e6b246d04f4c29a596b852871a4d65157082da38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.6-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a2beeff33b5720cd8e960475d9b6b6203f9bfb16d85ad6ab0b068ab60200786d
MD5 f3f01b2e9dd268fa9bd7002746885266
BLAKE2b-256 6d140094334cd5e4ff9f9305daffc115e654746b76d6df91f6a6f9b4095d4766

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