SemanticSimilarityJava
A tool that can be used to compute the semantic similarity between Java classes in Java Software Projects
Steps:
Copy the Java software project folder/directory for which you want to compute the class level semantic similairty for and paste it in the Testcases/input folder. To test the tool, two Java software projects have been added to this folder.
In your IDE (e.g. Eclipse), open the MainSemanticCoupling.java class (this is the main class and can be found in SemanticSimilarityJava/src/edu/wm/cs/semeru/integration) and run it.
This will identify the Java classes, build the corpus for each of them (eliminate common key words, split and stem class and method identifiers) and compute their semantic similarity using the Vector Space Model (VSM) technique.
The output - the corpus for each class in your Java project and a .txt file containing the semantic similarity metrics between pairs of classes in each project will be saved in the home folder of this tool/project (SemanticSimilarityJava).
Log in or sign up for Devpost to join the conversation.