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.1-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.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (565.0 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.1-cp310-cp310-macosx_10_7_x86_64.whl (288.3 kB view details)

Uploaded CPython 3.10 macOS 10.7+ x86-64

rustsim-0.1.1-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.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (565.0 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.1-cp39-cp39-macosx_10_7_x86_64.whl (288.3 kB view details)

Uploaded CPython 3.9 macOS 10.7+ x86-64

rustsim-0.1.1-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.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (564.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.1-cp38-cp38-macosx_10_7_x86_64.whl (288.3 kB view details)

Uploaded CPython 3.8 macOS 10.7+ x86-64

rustsim-0.1.1-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.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (564.9 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.1-cp37-cp37m-macosx_10_7_x86_64.whl (288.3 kB view details)

Uploaded CPython 3.7m macOS 10.7+ x86-64

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8bf1ffcbde8783165111e937e6fb18935f5bdf20539c9dc5b9f863d4214e1be5
MD5 4496845b2df64097fba48e058904174e
BLAKE2b-256 cbaab3c05e8796c23b97a64b6891570621630f428482af57037bb7ee94877e7c

See more details on using hashes here.

File details

Details for the file rustsim-0.1.1-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.1-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5846248c32139f39b1eb1001adc6ab5c5b66c5052a5c64174fea3ff524a98b7a
MD5 01406fffb3db4ffc8dd8509291aa4a65
BLAKE2b-256 a25e65b61c8ad6d18ae7b7f96c34bfcfc6aa8d9e4f99052cf4780c1c0d82cb74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.1-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 f1df20afbff5b99eab0e33131c4ac3cacc2c1ae5aa3b46aa82acd7a1ac559ccb
MD5 5b6d4cd2d9a621eeabcbaa6e0bfd5abb
BLAKE2b-256 7ad9a283cda4aaa5caec67eb37f1a2bc0a8b8da397bb891568d127768d2d5d5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 06fc889b5c3d572eb564998f9cb155b389198d51a480cf663b367970d4da409c
MD5 098af942769ea0e5be06788198e9463c
BLAKE2b-256 bb9ce27ad2fdad4942b609aee6a6ab393cafc8e32cf605c4b87d497ba7fe0b63

See more details on using hashes here.

File details

Details for the file rustsim-0.1.1-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.1-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9d6da22fdbef651a0dbf354b3c833195f2bc7ae44148ae86765b270980fc4dc9
MD5 48fdeed5a39e2a3c590f772ec9c5375e
BLAKE2b-256 44809f82774b16a8b22a4dd083e3e98d336e14b3c34162fea67bd71ecec133db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 c5bae18247caf98077f2328038a193fa2162ce18ac27594de9107d1c81ecad4a
MD5 1486130a50555e3761d64534f53630f1
BLAKE2b-256 99b6fa37524ed38bea92775c1b5190b79aeeafe9621c627ba2877caa3dac7bc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a28a794b9162c381663f6b082562809dde614fd2773d19f648b38188c5db170f
MD5 a36234283e28386bf5596d0c5e85493f
BLAKE2b-256 67f4eeb4f5504b71dbf72ef47bd653e822a0ab08bbad9d14a57affb6b711b089

See more details on using hashes here.

File details

Details for the file rustsim-0.1.1-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.1-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e192d1672776c27597d7ea0a777cdc8120ccc40f928fbc57c24a86605a1bc983
MD5 86525e42d2d418d2cc1996a40994af3b
BLAKE2b-256 96a0630c70e64ba61aa15e111c5f3d506f6a1f33a2b644b58a170a55a351349b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b2eeecca0c9d591dc49192d22b38e72fff327dc232449106d3b7c321376256e1
MD5 2c282e6c82abec9d4fb457cbbec32eee
BLAKE2b-256 028fd23bf0342e870cbd28ac482313f84198a797d913b2535492167fb794cff3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 977f5aa820a5e0c149b10e57fcc7684a11161f42aaa1d32b700bf9598ce10a3f
MD5 2c8537b4d6f3ad29c87efadf337a95e1
BLAKE2b-256 054a714825b0f6eb0be9b30592016388864483ad54e832fdc41835beb32ffebf

See more details on using hashes here.

File details

Details for the file rustsim-0.1.1-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.1-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2024a62a89abbe382b835f05d60b0900c2bd657f10fd36e8c004708568b92ab0
MD5 78d23d1735b5409dc9b9b0a8c61d3f24
BLAKE2b-256 76e3c20ae9aa4fc6e4833a3fe4d214ac94d4d1c056539d8dfffc0251da0dbad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rustsim-0.1.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 7f2e4115d6f5cd55ae5e8717b6fab2f73e488291e87de256efed888daa6cb72d
MD5 bc4f083efd04bc2fb1a2563a063190a5
BLAKE2b-256 5e2289561decf1e8875d3e94b79896c9c9b4bc14dfdafcdfe34f2408211b6058

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