code: public static Sentence create(String param)
      {
          if (param == null)
          {
              return null;
          }
          param = param.trim();
          if (param.isEmpty())
          {
              return null;
          }
          Pattern pattern = Pattern.compile("(\\[(([^\\s]+/[0-9a-zA-Z]+)\\s+)+?([^\\s]+/[0-9a-zA-Z]+)]/?[0-9a-zA-Z]+)|([^\\s]+/[0-9a-zA-Z]+)");
          Matcher matcher = pattern.matcher(param);
          List<IWord> wordList = new LinkedList<IWord>();
          while (matcher.find())
          {
              String single = matcher.group();
              IWord word = WordFactory.create(single);
              if (word == null)
              {
                  logger.warning("在用 " + single + " 构造单词时失败，句子构造参数为 " + param);
                  return null;
              }
              wordList.add(word);
          }
          if (wordList.isEmpty()) // 按照无词性来解析
          {
              for (String w : param.split("\\s+"))
              {
                  wordList.add(new Word(w, null));
              }
          }
  
          return new Sentence(wordList);
      }
docs: 以人民日报2014语料格式的字符串创建一个结构化句子
  
  @param param
  @return