code: private static boolean isDicNeedUpdate(String mainPath, String path[])
      {
          if (HanLP.Config.IOAdapter != null &&
              !HanLP.Config.IOAdapter.getClass().getName().contains("com.hankcs.hanlp.corpus.io.FileIOAdapter"))
          {
              return false;
          }
          String binPath = mainPath + Predefine.BIN_EXT;
          File binFile = new File(binPath);
          if (!binFile.exists())
          {
              return true;
          }
          long lastModified = binFile.lastModified();
          //String path[] = HanLP.Config.CustomDictionaryPath;
          for (String p : path)
          {
              File f = new File(p);
              String fileName = f.getName();
              int cut = fileName.lastIndexOf(' ');
              if (cut > 0)
              {
                  p = f.getParent() + File.separator + fileName.substring(0, cut);
              }
              f = new File(p);
              if (f.exists() && f.lastModified() > lastModified)
              {
                  IOUtil.deleteFile(binPath); // 删掉缓存
                  logger.info("已清除自定义词典缓存文件！");
                  return true;
              }
          }
          return false;
      }
docs: 获取本地词典更新状态
  @return true 表示本地词典比缓存文件新，需要删除缓存