Answer the question
In order to leave comments, you need to log in
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()
import ast
with open("for_test.py", "r") as source:
tree = ast.parse(source.read())
print(ast.dump(tree))
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question