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

Uploaded CPython 3.10 Windows x86-64

rustsim-0.1.3-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.3-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.3-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.3-cp39-none-win_amd64.whl (169.0 kB view details)

Uploaded CPython 3.9 Windows x86-64

rustsim-0.1.3-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.3-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.3-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.3-cp38-none-win_amd64.whl (168.8 kB view details)

Uploaded CPython 3.8 Windows x86-64

rustsim-0.1.3-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.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (599.2 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.3-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.3-cp37-none-win_amd64.whl (168.8 kB view details)

Uploaded CPython 3.7 Windows x86-64

rustsim-0.1.3-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.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (599.2 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.3-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.3-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for rustsim-0.1.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 2c9ba0e95aaab1096416cbf2b57492315e7e0f67d2702286346904df00c712d0
MD5 db7451e5672b74f3c740429ed41228dd
BLAKE2b-256 5c65d80f8ed11b12dd8176ae29cbca78e829da59eeb437372a34a66a1035749b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e630de67db1d3d8cde26e490718f0f760a46b679bed0d35909ccdd8c995e9fa5
MD5 609fe1cacaccbd26becf24caf42ea410
BLAKE2b-256 540631c974871c8b3c391dde9335c4e2c31fec1aa41143290e18f861351a17b3

See more details on using hashes here.

File details

Details for the file rustsim-0.1.3-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.3-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7d5b650ed8a1ccdf29aa91386a9573deb9331ca8795f043bd7fd2360c25bf59d
MD5 3177eb36a89812fb767a98952d9357e8
BLAKE2b-256 cde042280766839ad2422a2043fd3d8a2572477fd3696666ab3de43f8502eef2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.3-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b40d24e883ecc7fc0f21261a8de6f0e9385f007b9825108a9166ccd417abd2d2
MD5 f462e8c0a3ce9ab9115d22e172a56321
BLAKE2b-256 815a21a09ed66af9c72822fccb8babcf8af9d699de42dc4bb8ddc31630ca8fd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.3-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 169.0 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.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 bf307f3c03b29841307360a10a44ecac16dc2d4755a2cf6bcb3d238dfcef42c6
MD5 8e31042b74d83dbd6876dd46aec9d8f8
BLAKE2b-256 5bea77df1c4f609566afa8ab693867c0c8b0bc540688e54d6a7f0253ae773d6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 34d43f66ef7a70941dda102931a9750a02767028f37fd1e819222151404f28a9
MD5 ff87d122db4785e8782a10a2ff9b6518
BLAKE2b-256 d12115ed207545ca03222b5bc8d3f739ebe6584280d95e7033d50426b7640c21

See more details on using hashes here.

File details

Details for the file rustsim-0.1.3-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.3-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0d9913f073819dfeb117e82b06504f3e50a8f04811cb9a02c49d22c495478c38
MD5 6ce25db1fd87caed7d05c8e167411ce2
BLAKE2b-256 cc1250a39cfcd169bc0389057ba0fd963bd5c46ce33b37f79ab7434592a5b3b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.3-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a00d5f0f4089395379967f6676f6c9c697232e0d81fa8d24c92a0e009c1cc0fa
MD5 2788a79940fefc420f145019091d2604
BLAKE2b-256 82163258464f8bd70d2a6a9f3abb1335f2bf390eadab4e3d1559dce5e8d8b11f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.3-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.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 03d6a038e1abd1a88a43c03c1c7205ccde4e3ce27d021af2ea340e14eb0fd797
MD5 5dacf604f988a98ba17739e79660b81f
BLAKE2b-256 4b7c0b6fa558796da361be6f15b344656e8834cf46c6e137de0bee56c1a86a46

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e492e2a1c19161886d8b13721dbb256e1eac36d9cde85045a40e026290806d76
MD5 7a6741bf075a9e41aae0842308ca8002
BLAKE2b-256 6037cb7b903c1ef78c1e701e36f2118c2dd9b75b0ac62f9e53df5a123b93a3fe

See more details on using hashes here.

File details

Details for the file rustsim-0.1.3-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.3-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0c7cdd9cdd70921914d0d35083755548be9812ace97c0e3d948b682c0e06966d
MD5 c6df911a94833ea2aa691850bd1477b9
BLAKE2b-256 e2ef6d792ae031c73bc32c41e3141b62394739faad28fc7606afb23c49e7753c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.3-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b48ea382255f63ba3f50b1e621a66649d00be39896f9be52efa8ae628e570ff4
MD5 c79462364af3cd571def2feec61e3070
BLAKE2b-256 054149d7572d56c7b7a7d69db5a9178894c04faad8389c3317b7fae35dac9397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rustsim-0.1.3-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 168.8 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.3-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 8077077d01fcfe87ccdad61fd096be1ab400783abc083876fc3fb1a22189a2b7
MD5 142972398e91a6b7c420344028edc803
BLAKE2b-256 59491ca812c8d4bb5e4e98437e929e27663901d0703e1bc341ae4da27e58e5d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6266e55213e78bfd21d8134df295870ef7de254fba586abc02ab072757160f78
MD5 c240c61bb89a646ad2d11c4f8143c4e3
BLAKE2b-256 9ca3db095d898090f8c00ec85fd744f00493f83df60586e75146b1da5d3f250d

See more details on using hashes here.

File details

Details for the file rustsim-0.1.3-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.3-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 318c993a3b2ed334533cf639748aca3231b0f365fabc245fd16d0f3c53160de8
MD5 d75934b73ce18d855547e5306db2352e
BLAKE2b-256 7c5e24830835d6bd166a333d0dd57b8d83614479333383f48a25dd97cde9d805

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.3-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 1ccc907794e28dac241f10fabc2497fc45dabdb7f74998f3bc31e4aca37dd20a
MD5 e6e844ce474a87bd419fe5f8d9097384
BLAKE2b-256 80f58a9127ed6b63dc52c35ec5e0c0fa168d52d9e55c80e9f9ff3c00b1c666b5

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