Skip to content
Permalink
bea2e3031f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 50 lines (47 sloc) 2.11 KB
package ThesisWork;
// Java imports---------------------------------------------------------------------------------------------------------
import ThesisWork.FocusTimeExtractor.EarlyFusion;
import ThesisWork.FocusTimeExtractor.LateFusion;
import ThesisWork.FocusTimeExtractor.GlobalModel;
import java.io.IOException;
/**
* Created by Supra on 22/02/2017.
*/
public class PseudoRelevanceApp {
//------------------------------------------------------------------------------------------------------------------
// Functions--------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
/**
* Example Configuration:
* Qno. Technique Env. Model 500 0.5
* 1 sumOfWords local EarlyFusion 100 0.8
* 2 meanOfWords global GlobalModel 100 0.1
* 3 sumtfScore local LateFusion 300 0.2
* 4 IDFofWords global GlobalModel 300
*/
public void run(String[] args) throws IOException{
switch(args[3]) {
case "EarlyFusion":
EarlyFusion cm = new EarlyFusion(args[4]);
cm.initialize(args);
cm.run(args);
break;
case "LateFusion":
LateFusion ra = new LateFusion(args[4]);
ra.initialize(args);
ra.run(args);
break;
case "GlobalModel":
GlobalModel rm = new GlobalModel(args[4]);
rm.initialize(args);
rm.run(args);
}
}
//------------------------------------------------------------------------------------------------------------------
// Main Method------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
public static void main(String[] args) throws IOException{
PseudoRelevanceApp app = new PseudoRelevanceApp();
app.run(args);
}
}