public Configuration(CommandLineOptions options) { this.Main = (args) => QueryDriver.Main(args); this.Name = "find-quality-queries"; this.Description = FromResource("Description"); this.ExtendedHelpText = FromResource("ExtendedHelpText"); this.Arguments.Add(new IndexDirectoryArgument(required: false)); this.OnExecute(() => new BenchmarkFindQualityQueriesCommand().Run(this)); }
public Configuration(CommandLineOptions options) { this.Main = (args) => QueryDriver.Main(args); this.Name = "run-trec-eval"; this.Description = FromResource("Description"); this.ExtendedHelpText = FromResource("ExtendedHelpText"); this.Argument("<INPUT_TOPICS_FILE>", FromResource("TopicsFileDescription")); this.Argument("<INPUT_QUERY_RELEVANCE_FILE>", FromResource("QueryRelevanceFileDescription")); this.Argument("<OUTPUT_SUBMISSION_FILE>", FromResource("OutputSubmissionFileDescription")); this.Arguments.Add(new IndexDirectoryArgument(required: true)); this.QueryOnTitle = this.Option("-t|--query-on-title", FromResource("QueryOnTitleDescription"), CommandOptionType.NoValue); this.QueryOnDescription = this.Option("-d|--query-on-description", FromResource("QueryOnDescriptionDescription"), CommandOptionType.NoValue); this.QueryOnNarrative = this.Option("-n|--query-on-narrative", FromResource("QueryOnNarrativeDescription"), CommandOptionType.NoValue); this.OnExecute(() => new BenchmarkRunTrecEvalCommand().Run(this)); }