Top > Research > Tools > Samurai-clone

Samurai-clone

Summary

Samurai-clone splits identifiers into words.
This is an implementation (a clone) of the Samurai algorithm.

Download

Install

Download the above perl script and three dictionary files.
Notice that all dictionary files must be in the same directory.
Then, specify the dictionary directory in the heading of the perl script as "$samurai_clone::DICT_DIR = ", where the directory path must be specified by using the fully qualified path name.

Usage

  perl   samurai.pl   source_file   (-s identifier | -f identifier_file)  
(Example)
$ perl samurai.pl xxxx.java -s ASTVisitor
This is a clone of "Samurai" for Java programs.
now loading dictionaries ... done.
ASTVisitor: AST Visitor

Reference