The code and scripts of APIGraph
- getAllEntities.py - The script to get all entities from API documents.
- getAllRelations.py - The script to extract relations between entities according to pre-defined templates.
- TransE.py - The script to convert each API in the relation graph into an embedding representation.
- clusterEmbedding.py - The script to cluster API embeddings into semantic-similar groups through k-means.
- res - This directory stores the resources used in above scripts, including API documents (already parsed into JSON formats), permission relation from PScout, and also some intermedia files.