B
B
bobs322020-04-14 16:22:15
Python
bobs32, 2020-04-14 16:22:15

How to create feature vector for AST vertices?

There is to_test.py code:

file = open(name_of_file, "a")
file.write(alpha_expression + "\n")
file.close()

I translated it into AST:
import ast
with open("for_test.py", "r") as source:
    tree = ast.parse(source.read())
print(ast.dump(tree))


how to create feature vectors for each vertex?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question