Package org.ictclas4j.bean

Examples of org.ictclas4j.bean.Sentence


            if (Utility.SEPERATOR_C_SUB_SENTENCE.indexOf(ss[i]) == -1
                && Utility.SEPERATOR_E_SUB_SENTENCE
                    .indexOf(ss[i]) == -1)
              s1 += Utility.SENTENCE_END;

            result.add(new Sentence(s1, true));
            s1 = "";
          }

          // �ǻس����з���ո�����Ҫ���з�������
          if (Utility.SEPERATOR_LINK.indexOf(ss[i]) != -1) {
            result.add(new Sentence(ss[i]));
            s1 = Utility.SENTENCE_BEGIN;

          } else if (Utility.SEPERATOR_C_SENTENCE.indexOf(ss[i]) != -1
              || Utility.SEPERATOR_E_SENTENCE.indexOf(ss[i]) != -1)
            s1 = Utility.SENTENCE_BEGIN;
          else s1 = Utility.SENTENCE_BEGIN;
//            s1 = ss[i];

        } else
          s1 += ss[i];
      }

      if (s1.length() > 0 && !Utility.SENTENCE_BEGIN.equals(s1)) {
        s1 += Utility.SENTENCE_END;
        result.add(new Sentence(s1, true));
      }
    }
    return result;
  }
View Full Code Here


            if (Utility.SEPERATOR_C_SUB_SENTENCE.indexOf(ss[i]) == -1
                && Utility.SEPERATOR_E_SUB_SENTENCE
                    .indexOf(ss[i]) == -1)
              s1 += Utility.SENTENCE_END;

            result.add(new Sentence(s1, true));
            s1 = "";
          }

          // �ǻس����з���ո�����Ҫ���з�������
          if (Utility.SEPERATOR_LINK.indexOf(ss[i]) != -1) {
            result.add(new Sentence(ss[i]));
            s1 = Utility.SENTENCE_BEGIN;

          } else if (Utility.SEPERATOR_C_SENTENCE.indexOf(ss[i]) != -1
              || Utility.SEPERATOR_E_SENTENCE.indexOf(ss[i]) != -1)
            s1 = Utility.SENTENCE_BEGIN;
          else s1 = Utility.SENTENCE_BEGIN;
//            s1 = ss[i];

        } else
          s1 += ss[i];
      }

      if (s1.length() > 0 && !Utility.SENTENCE_BEGIN.equals(s1)) {
        s1 += Utility.SENTENCE_END;
        result.add(new Sentence(s1, true));
      }
    }
    return result;
  }
View Full Code Here

TOP

Related Classes of org.ictclas4j.bean.Sentence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.