
artoria.action.hanlp.support.HankcsHanLpAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artoria-extend Show documentation
Show all versions of artoria-extend Show documentation
Artoria is a java technology framework based on the facade pattern.
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