public MultiWordProcessor(AnCoraProcessor _enclosing, IFactory <TreeNormalizer> tnf, ITreeFactory tf, bool ner) { this._enclosing = _enclosing; // NB: TreeNormalizer is not thread-safe, and so we need to accept + store a // TreeNormalizer factory instead this.tnf = tnf; this.tn = tnf.Create(); this.tf = tf; this.ner = ner; }
/// <exception cref="System.Exception"/> /// <exception cref="System.IO.IOException"/> /// <exception cref="Java.Util.Concurrent.ExecutionException"/> /// <exception cref="System.TypeLoadException"/> public static void Main(string[] args) { if (args.Length < 1) { log.Info(usage); } Properties options = StringUtils.ArgsToProperties(args, argOptionDefs); string[] remainingArgs = options.GetProperty(string.Empty).Split(" "); IList <File> fileList = new List <File>(); foreach (string arg in remainingArgs) { fileList.Add(new File(arg)); } AnCoraProcessor processor = new AnCoraProcessor(fileList, options); IList <Tree> trees = processor.Process(); foreach (Tree t in trees) { System.Console.Out.WriteLine(t); } }