示例#1
0
 public Processor(int maxBatchSize, bool withLemmatization = false, bool useEnGrams = false, bool bigModel = false)
 {
     _maxBatchSize      = maxBatchSize;
     _withLemmatization = withLemmatization;
     _config            = new Config(useEnGrams, bigModel);
     _net = new TfNeuralNet(_config.OpDic, _config.GramOpDic, bigModel, withLemmatization);
 }
示例#2
0
 public NetworkProc(TagHelper tagHelper,
                    int maxBatchSize,
                    bool withLemmatization = false,
                    bool useEnGrams        = false)
 {
     _tagHelper         = tagHelper;
     _maxBatchSize      = maxBatchSize;
     _withLemmatization = withLemmatization;
     _config            = new Config(useEnGrams);
     _net = new TfNeuralNet(_config.OpDic, _config.GramOpDic, withLemmatization);
 }