Skip to main content

Set of PyTorch modules for developing and evaluating different algorithms for embedding trees.

Project description

JetBrains Research Github action: build Code style: black Checked with mypy

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

embeddings-for-trees-1.1.0.tar.gz (12.6 kB view hashes)

Uploaded Source

Built Distribution

embeddings_for_trees-1.1.0-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

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