Embeddings for trees
Set of PyTorch modules for developing and evaluating different algorithms for embedding trees.
Requirements
You can install the dependencies by using the requirement list
pip install -r requirements.txt
Although it's better to install PyTorch and DGL manually for correct CUDA support.
Data preprocessing
List of some useful tools for preprocessing source code into a dataset with ASTs:
- ASTMiner - tool for mining raw ASTs and path-based representation of code using ANTLR, GumTree and other grammars.
- PSIMiner - tool for processing PSI trees from IntelliJ IDEA and creating labeled dataset from them.
Model zoo
List of supported algorithms of tree embeddings with links to wiki guides:
Contribution
Supporting different algorithms of encoding and decoding trees is the key area of improvement for this framework. If you have any suggestions or questions, feel free to open issues and create pull requests.
Metadata
Release files for embeddings-for-trees 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| embeddings-for-trees-1.1.0.tar.gz | 12.6 kB | Without provenance | Details for embeddings-for-trees-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| embeddings_for_trees-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for embeddings_for_trees-1.1.0-py3-none-any.whl |
Total release size: 29.4 kB
Release files / embeddings-for-trees-1.1.0.tar.gz
| Download URL | embeddings-for-trees-1.1.0.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7f4ced52d3ecb9e789ee7d5fb98a69dfad2b4e943df2a83b168ec649ad94f59
|
|
BLAKE2b-256 checksum How to use checksums |
500be1cae7b1205923bfc02f1947ea45c9516b3deb1e1d0e899884b25ebbc7da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / embeddings_for_trees-1.1.0-py3-none-any.whl
| Download URL | embeddings_for_trees-1.1.0-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdca3073956c554a3bd9053656cda3aa5b2d063ecc60bb4e4a0f7aca0b7cabe2
|
|
BLAKE2b-256 checksum How to use checksums |
082cdb95208df3a3da5680d0710e920ce02f9b1aa96f26bdbf6bd0f2feba5787
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for embeddings-for-trees 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.