You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2011/05/19 12:22:17 UTC
svn commit: r1124664 -
/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/ParserModel.java
Author: joern
Date: Thu May 19 10:22:17 2011
New Revision: 1124664
URL: http://svn.apache.org/viewvc?rev=1124664&view=rev
Log:
OPENNLP-180 Removed old main methods
Modified:
incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/ParserModel.java
Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/ParserModel.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/ParserModel.java?rev=1124664&r1=1124663&r2=1124664&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/ParserModel.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/parser/ParserModel.java Thu May 19 10:22:17 2011
@@ -237,28 +237,4 @@ public class ParserModel extends BaseMod
return new GenericModelReader(new BinaryFileDataReader(new FileInputStream(fileName))).
getModel();
}
-
- @Deprecated
- public static void main(String[] args) throws FileNotFoundException, IOException, InvalidFormatException {
- if (args.length != 6){
- System.err.println("ParserModel packageName buildModel checkModel headRules chunkerModel posModel");
- System.exit(1);
- }
-
- AbstractModel buildModel = readModel(args[1]);
-
- AbstractModel checkModel = readModel(args[2]);
-
- opennlp.tools.parser.lang.en.HeadRules headRules =
- new opennlp.tools.parser.lang.en.HeadRules(args[3]);
-
- ChunkerModel chunkerModel = new ChunkerModel(new FileInputStream(args[4]));
-
- POSModel posModel = new POSModel(new FileInputStream(args[5]));
-
- ParserModel packageModel = new ParserModel("en", buildModel, checkModel, posModel,
- chunkerModel, headRules, ParserType.CHUNKING, null);
-
- packageModel.serialize(new FileOutputStream(args[0]));
- }
}
\ No newline at end of file