code: private static void processWords() {
          try(BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("target/dic.txt"),"utf-8"));
                  BufferedWriter writerFreq = new BufferedWriter(new OutputStreamWriter(new FileOutputStream("target/dic_with_freq.txt"),"utf-8"))){
              for(String word : WORDS.keySet()){
                  writer.write(word+"\n");
              }
              List<Entry<String, Integer>> entrys = WORDS.entrySet().parallelStream().sorted((a,b)->b.getValue().compareTo(a.getValue())).collect(Collectors.toList());
              for(Entry<String, Integer> entry : entrys){
                  writerFreq.write(entry.getKey()+" "+ entry.getValue()+"\n");
              }
          }catch(Exception e){
              LOGGER.info("保存词典文件失败：", e);
          }
      }
docs: 分析处理并存储不重复词