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.2-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.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (587.9 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.2-cp310-cp310-macosx_10_7_x86_64.whl (298.7 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

rustsim-0.1.2-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.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (588.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.2-cp39-cp39-macosx_10_7_x86_64.whl (299.1 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

rustsim-0.1.2-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.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (588.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.2-cp38-cp38-macosx_10_7_x86_64.whl (299.1 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rustsim-0.1.2-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.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (588.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.2-cp37-cp37m-macosx_10_7_x86_64.whl (299.1 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4448478228c4b18d5acdb935b3a02ddd3b80f6cbf689e5382578a699d62990c9
MD5 c981e84a07132a641f377f5f3d29e1c8
BLAKE2b-256 82669d18479526268fedc4600ef3df886b91d9be329d3756e32a29cc1988f68d

See more details on using hashes here.

File details

Details for the file rustsim-0.1.2-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.2-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a2679d52b0236d69a2f945090f911ec9024932895f95b8f029b5a8489d2467db
MD5 0af2870cde29ed55c549df5c240127fe
BLAKE2b-256 c25a1ea0cb061b02ced2327cfeb04dfc1e07c93e8b355a50118d77e54dc7eb1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.2-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b11e0ed40ed19034cac7267f367bf3463cb6989bcbc25bbe1f5077cd5e2916ac
MD5 10546f78aa3c793757254d6ef0e3460b
BLAKE2b-256 849984e3c976ccc7ef646e7edfa4172d35990e823471fa1807d6596b925a2b5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 283be11d5dd44396b358bc00bf0f682cf823aae6b3cf779b46add83324d4f23f
MD5 69134ae58776ef02f526c7bdf9b86c8e
BLAKE2b-256 fb67aa7e8ffd770ff8d8f77b902b76f68fb1d3a8cdea3b0e7d0f3ac8f40b164f

See more details on using hashes here.

File details

Details for the file rustsim-0.1.2-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.2-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5ec1a234222e47dad14cdc2e6bb77f56d88e9a8dd9b9b5d24c103a06ce2078d2
MD5 eb7281e6c08b7bb175899f638964b94c
BLAKE2b-256 56ec637cb71a7fe1435755b105769ffdcfafdcdb98020efb51d6ce177bc1cee7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.2-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 2ad6d8c412d91101b23408850818b6e9794f5afb19ffc57ca37ad67edb14ec03
MD5 f93dfb7b15b08fb01477ea6db3f16244
BLAKE2b-256 8bc1df5e46c577ea274bb068e063983680231dd4f2b0ed591dc1df5cc9bcc0ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df8258953109a35c761927831bd0eebcf34f26db03b49f53b880e97ee3dc0579
MD5 f24fd7343bee1d14a3c6b43ae26ebf5d
BLAKE2b-256 20f178734df81fa2d7d67ff7973037ec525742a3b04713a31e28b8f675c89c0a

See more details on using hashes here.

File details

Details for the file rustsim-0.1.2-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.2-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c98e7aaba3b4b609497fb2ab42fdc6791c81e18444febb008c12fc4f3993b33c
MD5 0775cb26d2da630073f278253d3493d6
BLAKE2b-256 0b78009e1363cb70f6cfa616d7184889dff99cc200900574e911c21594640358

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.2-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 85acaec4fdb64a4b119aa62b8de345108a1c00909f5a5619fc7a0b577f7f8c4c
MD5 3619b3a87c4e5353d24c113b33553b94
BLAKE2b-256 8fda46eef46cb7d8b2d076baa19386ed97c091db2ac0deb6bce1072cb8cb45c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 975994b133ff37c0e0119a17f0b5205b8081a065680929468fb3452e1bb9b755
MD5 5ebd9df2aa6de73f08b55a89bf48aa90
BLAKE2b-256 c633967494716fd19d0a015b0a33232a9f5215b5c45dafe40409877d55875131

See more details on using hashes here.

File details

Details for the file rustsim-0.1.2-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.2-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9fb7110822f5f37ea83d84f93e27a5a93e967dd2581b3a1c370d89e7dd3ad23b
MD5 ec705d610170ba09ac42484c7343c01e
BLAKE2b-256 ef6d25d74ae805b3edf4a100268426538c27c95709b971a1b2c787ada7635511

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a99d3c4684b197d4c6d420354a14297af20f22307513f7757fd3dddeb8936b5f
MD5 af58b45a4a13e6ef1aa56d15c293903c
BLAKE2b-256 0b3aeccca926b76813cfbf9a05e4e36f7404a45dcf10d11e43f033110a83290d

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