Package org.wltea.analyzer.cfg

Examples of org.wltea.analyzer.cfg.Configuration


   * IK分词器构造函数
   * @param input
     */
  public IKSegmenter(Reader input , Settings settings, Environment environment){
    this.input = input;
    this.cfg = new Configuration(environment);
        this.useSmart = settings.get("use_smart", "false").equals("true");
        this.init();
  }
View Full Code Here


    private final IKAnalyzer analyzer;

    @Inject
    public IkAnalyzerProvider(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
        super(index, indexSettings, name, settings);
        Dictionary.initial(new Configuration(env));
        analyzer=new IKAnalyzer(indexSettings, settings, env);
    }
View Full Code Here

  @Inject
  public IkTokenizerFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) {
    super(index, indexSettings, name, settings);
    this.environment = env;
    this.settings = settings;
    Dictionary.initial(new Configuration(env));
  }
View Full Code Here

TOP

Related Classes of org.wltea.analyzer.cfg.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.