Permalink
Cannot retrieve contributors at this time
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?
Temp2Vec/src/main/java/ThesisWork/PseudoRelevanceApp.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
50 lines (47 sloc)
2.11 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |