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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
File details
Details for the file rustsim-0.1.5-cp310-none-win_amd64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp310-none-win_amd64.whl
- Upload date:
- Size: 174.0 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9780325c8e18cb2eff80cbbf2ce71c339410bcfb02c9488c9c13285907614b4 |
|
MD5 | cb024bced8cdb09533bba126263f7f16 |
|
BLAKE2b-256 | 5b11e2e1af5abfe4111ccb2199d3688de7ff10f0ecd8b595dcaa9452c9bc446c |
File details
Details for the file rustsim-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10fc49d3ffe707f347be04e40103ba888410d8d39c7f274f80f25834a60ef8b2 |
|
MD5 | 2bb7a9ea656fcaa1d809d40dea1aa790 |
|
BLAKE2b-256 | 63ad87338a52b8ecf109d9add6b13ec57c6701a0943a0f9ffd2d763680d56f82 |
File details
Details for the file rustsim-0.1.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 609.7 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0e2e0e7961759146e1753fe18451962c10f281f193b41f58eb871a4c1f8b0aa |
|
MD5 | 71cd6a1caae1f4c22304510a4481a7c3 |
|
BLAKE2b-256 | 5512d338660b05cf75ac53788b5ff3fa384277bc07ad2547ffb8221c852cd2ab |
File details
Details for the file rustsim-0.1.5-cp310-cp310-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp310-cp310-macosx_10_7_x86_64.whl
- Upload date:
- Size: 310.1 kB
- Tags: CPython 3.10, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c10688f0a5804b353f883a176b08b8d8427d1c1f90ddee95b32adfabe63f470 |
|
MD5 | d00820c9e43b77746920aeb570ea1498 |
|
BLAKE2b-256 | 4b931adbf6c83c6a82caa3c472477d0d15037429a9183d64bbb707838eb4a158 |
File details
Details for the file rustsim-0.1.5-cp39-none-win_amd64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp39-none-win_amd64.whl
- Upload date:
- Size: 174.3 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fab2c9f703e85cb0b97b9c7b1d26a2f38d541f9242e961e0fd172357b9943f4 |
|
MD5 | 175f303637e18926e53cbb121b960a99 |
|
BLAKE2b-256 | 37e892d70dc2eeb7010fb5948176ea42fa797eb09087c0fd206238bcd7850217 |
File details
Details for the file rustsim-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08add25422187f9c8527a55342c6601de6012196da19d008e475ffb71f14f38b |
|
MD5 | 09eb3bf69955c7e81bc55904d369319d |
|
BLAKE2b-256 | 06a648f0303c1d69a1e2f24247052a5778b234d575c3cf0c14213d5e83a479ad |
File details
Details for the file rustsim-0.1.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 610.2 kB
- Tags: CPython 3.9, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0132dad56343d726f801cc9ae239ceb989bc7ad3ff490ae357fc01c668e64925 |
|
MD5 | e6e3fb3b6c8b4f638f1bcdee85298f7e |
|
BLAKE2b-256 | b5eac515611bf681eb55697c00059c5c3096a9bc5a4ade56eeb547784fe4fc3c |
File details
Details for the file rustsim-0.1.5-cp39-cp39-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp39-cp39-macosx_10_7_x86_64.whl
- Upload date:
- Size: 310.6 kB
- Tags: CPython 3.9, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3091aceaa5318e26fbab2eeb06a9dc09467df9822cd1654840072fbd7ec571a |
|
MD5 | 43f02aec2cba2088215e280fb0e84b93 |
|
BLAKE2b-256 | 679dc13ae3be2ad99dd3f65a2b9551012cfd54ca3a963dc74c1f9d7a00f50418 |
File details
Details for the file rustsim-0.1.5-cp38-none-win_amd64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp38-none-win_amd64.whl
- Upload date:
- Size: 174.0 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26036a7833503e43672d754cf751fd1a27bcdd74cc722d7df7d2954625e0d62c |
|
MD5 | 8dd5ce7165039900cd02b3fbd81f09f5 |
|
BLAKE2b-256 | 02074bfc455e9e631de975e7f4fbf2abbcf2927654e7b9b081e980c0583dcdaf |
File details
Details for the file rustsim-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57006f51f45302a89d7628a128664af0be588341b67616aa243c3bf8f93481d8 |
|
MD5 | 7cb48ce4cda4586ac0a85c99f5b67c26 |
|
BLAKE2b-256 | 43aabf0fcb5261de1306f56eedeae826699a269a8ecf5b33fa86d0f58044d712 |
File details
Details for the file rustsim-0.1.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 610.2 kB
- Tags: CPython 3.8, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f26eab72d5beaa8a673a6d6884d07a2ac8b243bdcea54957fff837d781f20f |
|
MD5 | 17b5a4c273cd3fb57c2a53b4ea5904db |
|
BLAKE2b-256 | f73df7bd677c0cd53436a9175c59fd19d9b9ebd33bec878756e2230aa9b69d49 |
File details
Details for the file rustsim-0.1.5-cp38-cp38-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp38-cp38-macosx_10_7_x86_64.whl
- Upload date:
- Size: 310.5 kB
- Tags: CPython 3.8, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b8ed327bf9a022ef4a248e2b1c3f0616195bc749469882f5b292f7bfcc30faf |
|
MD5 | 2f07593ece76d002aa1d30be4bec3f03 |
|
BLAKE2b-256 | cf414dfd622158d8dd78c981984dd93b55e7b9b1fa3a2bae1a80cf3ba8809e8f |
File details
Details for the file rustsim-0.1.5-cp37-none-win_amd64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp37-none-win_amd64.whl
- Upload date:
- Size: 174.1 kB
- Tags: CPython 3.7, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ace38105bb48e46555b60919071cfa2febbfb3cb8549d21015b8aee0c8c49f7 |
|
MD5 | faa194eb5540a7711eec007c5cbdf46a |
|
BLAKE2b-256 | 4e00f3a5023e5f3fb4bbc2a445cb7c12cbec7c24f6de3d90f35a9794ed87a8ca |
File details
Details for the file rustsim-0.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.7m, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a34665180bfbd7896136ad756de48ad8874ac84bf6020552e88aba83e66a2629 |
|
MD5 | 9f8c8285ac0f767d1c2ff6abbf73f823 |
|
BLAKE2b-256 | 0bf6b2c4688b3688d9e799c4dd42bc5a198188c57b00acebe3ec879b2f779aa5 |
File details
Details for the file rustsim-0.1.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
- Upload date:
- Size: 610.3 kB
- Tags: CPython 3.7m, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e692b6b2b582bc0ec6cfbd36951d78835fab598c79f420a0b60967b2a0b68cd6 |
|
MD5 | 140669b0ab4bc9b086ef5f58c64c4ad2 |
|
BLAKE2b-256 | d02d5c835dfc6e57785b48fe0b58196b8820565b35ecf5656076d36c0921c47d |
File details
Details for the file rustsim-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl
.
File metadata
- Download URL: rustsim-0.1.5-cp37-cp37m-macosx_10_7_x86_64.whl
- Upload date:
- Size: 310.6 kB
- Tags: CPython 3.7m, macOS 10.7+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d4e320b139c39d630076b6b9fe84750a4d9209eb327d5a923b61c5f217044fe |
|
MD5 | bf2e0bb096fdc411942f274e5c594d9b |
|
BLAKE2b-256 | ead2804c76e20bb08584772e241cba866842ae0843afc8ef1d33cbc00c12cefe |