src-d / ml

sourced.ml is a library and command line tools to build and apply machine learning models on top of Universal Abstract Syntax Trees
Other
141 stars 44 forks source link

How can I use the ast2vec? #341

Closed DennisShaw closed 6 years ago

DennisShaw commented 6 years ago

I want to embedding AST tree nodes to vector.Would you mind helping me?Thank you

vmarkovtsev commented 6 years ago

@DennisShaw There several embedding types depending on how you want to group the nodes. Internal type? Topology? Graph Network to solve a particular problem? etc.

Worth having a look at code2vec, also GGNN papers by Miltos Alamanis.

That being said, this project does not contain any straightforward wrappers or end-user commands for that. Cheers.