| 29 | public class MapReduceScore extends Configured implements Tool { |
| 30 | |
| 31 | @Override |
| 32 | public int run(final String[] args) throws Exception { |
| 33 | if(args.length!=3) { |
| 34 | final Log log = LogFactory.getLog(MapReduceScore.class); |
| 35 | log.info(Licenses.licenses); |
| 36 | log.fatal("use: MapReduceScore model.ser testFile resultDir"); |
| 37 | return -1; |
| 38 | } |
| 39 | final String modelFileName = args[0]; |
| 40 | final String testFileName = args[1]; |
| 41 | final String resultFileName = args[2]; |
| 42 | run(modelFileName,testFileName,resultFileName); |
| 43 | return 0; |
| 44 | } |
| 45 | |
| 46 | public double run(final String modelFileName, final String testFileName, final String resultFileName) throws Exception { |
| 47 | final Log log = LogFactory.getLog(MapReduceScore.class); |