public Query(DVModelReranker _enclosing) { this._enclosing = _enclosing; this.transformer = LexicalizedParser.BuildTrainTransformer(this._enclosing.op); this.scorer = new DVParserCostAndGradient(null, null, this._enclosing.model, this._enclosing.op); this.deepTrees = Generics.NewArrayList(); }
public Query(CombinedDVModelReranker _enclosing) { this._enclosing = _enclosing; this.transformer = LexicalizedParser.BuildTrainTransformer(this._enclosing.op); this.scorers = Generics.NewArrayList(); foreach (DVModel model in this._enclosing.models) { this.scorers.Add(new DVParserCostAndGradient(null, null, model, this._enclosing.op)); } }
public static ITreeTransformer BuildTrainTransformer(Options op) { CompositeTreeTransformer transformer = LexicalizedParser.BuildTrainTransformer(op); return(transformer); }