embeddings-for-trees-1.1.0
توضیحات
Set of PyTorch modules for developing and evaluating different algorithms for embedding trees.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | embeddings-for-trees-1.1.0 |
| نام | embeddings-for-trees |
| نسخه کتابخانه | 1.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Egor Spirin |
| ایمیل نویسنده | spirin.egor@gmail.com |
| آدرس صفحه اصلی | https://github.com/JetBrains-Research/embeddings-for-trees |
| آدرس اینترنتی | https://pypi.org/project/embeddings-for-trees/ |
| مجوز | MIT |
[](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
[](https://github.com/JetBrains-Research/embeddings-for-trees/actions?query=workflow%3ATest)
[](https://github.com/psf/black)
[](http://mypy-lang.org/)
# 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
```bash
pip install -r requirements.txt
```
Although it's better to install [PyTorch](https://pytorch.org/get-started/locally/) and [DGL](https://www.dgl.ai/pages/start.html)
manually for correct CUDA support.
## Data preprocessing
List of some useful tools for preprocessing source code into a dataset with ASTs:
- [ASTMiner](https://github.com/JetBrains-Research/astminer) -
tool for mining raw ASTs and path-based representation of code using ANTLR, GumTree and other grammars.
- [PSIMiner](https://github.com/JetBrains-Research/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:
- [TreeLSTM](https://github.com/JetBrains-Research/embeddings-for-trees/wiki/TreeLSTM-guide)
## 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.
نیازمندی
| مقدار | نام |
|---|---|
| >=1.10.0 | torch |
| ~=1.5.0 | pytorch-lightning |
| ~=0.12.0 | wandb |
| ~=2.1.1 | omegaconf |
| >=0.4.1 | commode-utils |
| ~=0.6.1 | dgl |
نحوه نصب
نصب پکیج whl embeddings-for-trees-1.1.0:
pip install embeddings-for-trees-1.1.0.whl
نصب پکیج tar.gz embeddings-for-trees-1.1.0:
pip install embeddings-for-trees-1.1.0.tar.gz