All Downloads are FREE. Search and download functionalities are using the official Maven repository.

artoria.action.hanlp.support.HankcsHanLpAutoConfiguration Maven / Gradle / Ivy

The newest version!
package artoria.action.hanlp.support;

import artoria.action.ActionUtils;
import com.hankcs.hanlp.HanLP;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(HanLP.class)
public class HankcsHanLpAutoConfiguration {

    public HankcsHanLpAutoConfiguration() {
        HankcsSegmentHandler handler = new HankcsSegmentHandler();
        ActionUtils.registerHandler("text-segment", handler);
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy