Example #1
0
 /**
  * 是否启用所有的命名实体识别
  *
  * @param enable
  * @return
  */
 public Segment enableAllNamedEntityRecognize(boolean enable) {
   config.nameRecognize = enable;
   config.japaneseNameRecognize = enable;
   config.translatedNameRecognize = enable;
   config.placeRecognize = enable;
   config.organizationRecognize = enable;
   config.updateNerConfig();
   return this;
 }
Example #2
0
 /**
  * 是否启用日本人名识别
  *
  * @param enable
  */
 public Segment enableJapaneseNameRecognize(boolean enable) {
   config.japaneseNameRecognize = enable;
   config.updateNerConfig();
   return this;
 }
Example #3
0
 /**
  * 开启机构名识别
  *
  * @param enable
  * @return
  */
 public Segment enableOrganizationRecognize(boolean enable) {
   config.organizationRecognize = enable;
   config.updateNerConfig();
   return this;
 }
Example #4
0
 /**
  * 是否启用音译人名识别
  *
  * @param enable
  */
 public Segment enableTranslatedNameRecognize(boolean enable) {
   config.translatedNameRecognize = enable;
   config.updateNerConfig();
   return this;
 }
Example #5
0
 /**
  * 开启地名识别
  *
  * @param enable
  * @return
  */
 public Segment enablePlaceRecognize(boolean enable) {
   config.placeRecognize = enable;
   config.updateNerConfig();
   return this;
 }