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

Uploaded CPython 3.10 Windows x86-64

rustsim-0.1.8-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.8-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (615.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.8-cp310-cp310-macosx_10_7_x86_64.whl (314.7 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

rustsim-0.1.8-cp39-none-win_amd64.whl (178.8 kB view details)

Uploaded CPython 3.9 Windows x86-64

rustsim-0.1.8-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.8-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (616.5 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.8-cp39-cp39-macosx_10_7_x86_64.whl (315.2 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

rustsim-0.1.8-cp38-none-win_amd64.whl (178.7 kB view details)

Uploaded CPython 3.8 Windows x86-64

rustsim-0.1.8-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.8-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (616.9 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.8-cp38-cp38-macosx_10_7_x86_64.whl (315.2 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rustsim-0.1.8-cp37-none-win_amd64.whl (178.7 kB view details)

Uploaded CPython 3.7 Windows x86-64

rustsim-0.1.8-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.8-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (617.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.8-cp37-cp37m-macosx_10_7_x86_64.whl (315.3 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 2619967825f2a42e9eaf32d8217abd2c49c48a78059f57602df30b3b750378de
MD5 f24617e9791bb67bee5b157042e9f424
BLAKE2b-256 6c6b7976d3193620f9d5ab27a8e2cb4af19377c979bc8578ea2c4f34eaeaaae1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce483a165030fa73c2d133a61fab2963d88e5c4d468244df38084051a6b8c5f1
MD5 845d6ede1cf2ed80da8b0aa7e4ac30b9
BLAKE2b-256 e5e1b3c9efb3f29452c937ed049be01bb0baba99fde01f5aa6015c3e3650a1b1

See more details on using hashes here.

File details

Details for the file rustsim-0.1.8-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.8-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 240dda9b80e7c8b5d382427020c951729f899732503ef4d9a861eaef7cec46d6
MD5 2d087ac8fbbdca54ba15993e492cece2
BLAKE2b-256 e6ef2fc1f76884515bbe4fc82708bba5fcda81ad02feff9b801a7e9f4f3df4ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 e0170079ae850801c74b776ba6a1e68e31b0cc60f7a739f1974873778ac4207e
MD5 0c3ff529455af2b8ea1aa19b87d2974f
BLAKE2b-256 5905613e3fc249b080ffde6ac8d7312c723250a9488b4d45eebfdeca7242375f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rustsim-0.1.8-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 cf3f987f30d58b8535bfebfe9fde63c14621e0dcbe375fe129b78d9f81aeadf9
MD5 64eb041d6d2d2a5a79c1ae0fffa5f2a0
BLAKE2b-256 c78869db7dba03d3388112865f30cf75bd3939120902af5b6595fb32eaa8a576

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0bdf735de145efca05a2abb6dcfe9f713c4e2d2b44bc5b0f4dd40587a3a4e9a3
MD5 f8a8665b066a1afa0e925bd0fe39260b
BLAKE2b-256 a2612897d5701e1b1e93ba30beb568ad96669d9a19c343f0e00a4dc874417798

See more details on using hashes here.

File details

Details for the file rustsim-0.1.8-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.8-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 067083ffe78482c359e922518e20576e8c143d9376c138c959b3a84d5afbd35a
MD5 feed804896ee36afb7796a849ae58cd2
BLAKE2b-256 e30317f620d0e24860ecbe8bab15db948f3f2a3330f8dbdde2b67bc728899bd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 3e484698c98d24b73013d5497b37197544bbeb276bd09eae89fbc52258432092
MD5 9abeac5981fcc71d7a9fd6d5f629f8ae
BLAKE2b-256 54e8b1cc00dcd7c033379bf402f1e026b3285657bf6cdcf001a3559a4b55324c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rustsim-0.1.8-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 850fc909312eb14ac9bbede957393ece39e65ab7475bd11d0a82c9dffc950130
MD5 7b51877e6aa3dd91f9c43714aa7aa77c
BLAKE2b-256 8f98cf1a2dbd5d914c257c35e5ce011cc380dba4cce110ffca4c2efd1c7e07c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d38872179b43d97a5f93ed81a9e51ba76f8db0ba4f1dd39641ef21f2b8d0fdb0
MD5 58624973d9d0a3e24a50d3bb988c86af
BLAKE2b-256 b62da17f6eeb5c769c370e33e5f6ae0cdc5f2d7ee5d32498e4811eea6229c9fb

See more details on using hashes here.

File details

Details for the file rustsim-0.1.8-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.8-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 739fd70e0c8b071bd5d5b8b88c94dde2662ed517f98c180e5080f35e7be24302
MD5 63a8ad90c975c3eb2b67e1c24948b288
BLAKE2b-256 942ff64f14103f7010ad50be24b4d0d92d957bf7a0733662690152ceceac5c36

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 af2c433a7d67d8e3f53843aed8da677af7dd6ab8ff7e4b9b0cebfd65b8f38971
MD5 815330bf51036ffcecab4ba0e18430f2
BLAKE2b-256 4a2b11fe0d2efc682bd39b619d223408d22c406974f2f427379c32581d4510b5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for rustsim-0.1.8-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 892654a68c6c7c8ddafdf3beab4e06f02c0d151bd7476f3bf353ea3e268590d1
MD5 54975862c920c5766b3bf07d28ece2cd
BLAKE2b-256 74d6f53f2596fe048c0eabf0ec888ccda0cb921cd4be81564a163f0f2dce2b03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bd414e6a081e31fab8cc479ffbfc8ac0f4a8febdfbe41445855aefa690406e94
MD5 92514896c887882af332d7832e050848
BLAKE2b-256 6f419f39e9ff729b28ef6eca82e65b1497d290c49761cf70d52399fc3d2dbd15

See more details on using hashes here.

File details

Details for the file rustsim-0.1.8-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.8-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 cb3d71f4bc7fa8fdbf15246bb65c15e6c5159e1e2d0cb825697fe60cab23b61b
MD5 6aa80b66df04361e258e8e7d15c9dd3f
BLAKE2b-256 1c6b4936b689557b5367b37388bd4e202b244f7dc5506b9b3b3337cc85170fdf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.8-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 660237d57905b596ce5fb5a9efc8b1331610dc981f6271132e37a438be839787
MD5 29ce7e30cfe4db5c49b2fa32d189d496
BLAKE2b-256 fd47ea0b02255758e5b790d5243d967a762bc663739954ed86c124312ec864d0

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