HS-Flensburg-PLTP / haskell2vec

0 stars 0 forks source link

Main application #17

Open jan-christiansen opened 4 years ago

jan-christiansen commented 4 years ago

Add parameters to the application and make it usable as a standalone application.

jan-christiansen commented 4 years ago

Check what parameter the python scripts at https://github.com/tech-srl/code2vec are passing the the extractors.

jan-christiansen commented 4 years ago

Java extractor

command = ['java', '-cp', args.jar, 'JavaExtractor.App',
           '--max_path_length', str(args.max_path_length), '--max_path_width', str(args.max_path_width),
           '--dir', dir, '--num_threads', str(args.num_threads)]

C# extractor

 command = ['dotnet', 'run', '--project', args.csproj,
           '--max_length', str(args.max_path_length), '--max_width', str(args.max_path_width),
           '--path', dir, '--threads', str(args.num_threads), '--ofile_name', str(args.ofile_name)]