Class SentencePair

    • Constructor Detail

      • SentencePair

        public SentencePair()
      • SentencePair

        public SentencePair​(SentencePair source)
        NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
    • Method Detail

      • getSourceText

        public String getSourceText()
        Get 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
        Returns:
        SourceText 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
      • setSourceText

        public void setSourceText​(String SourceText)
        Set 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
        Parameters:
        SourceText - 需要与目标句子计算相似度的源句子。(仅支持UTF-8格式,不超过500字符)
      • getTargetText

        public String getTargetText()
        Get 目标句子。(仅支持UTF-8格式,不超过500字符)
        Returns:
        TargetText 目标句子。(仅支持UTF-8格式,不超过500字符)
      • setTargetText

        public void setTargetText​(String TargetText)
        Set 目标句子。(仅支持UTF-8格式,不超过500字符)
        Parameters:
        TargetText - 目标句子。(仅支持UTF-8格式,不超过500字符)