Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
APDPlat - Application Product Development Platform Copyright (c) 2013, 杨尚川, This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <>.
对候选答案进行评分 【宽松文本对齐评分组件】 忽略问题中长度为1的词 匹配更多的内容

    private static final Logger LOG = LoggerFactory.getLogger(MoreTextualAlignmentCandidateAnswerScore.class);
    public void score(Question questionEvidence evidence,
            CandidateAnswerCollection candidateAnswerCollection) {
    protected List<StringgetQuestionTerms(Question question) {
        List<Stringlist = question.getTerms();
        List<Stringresult = new ArrayList<>();
        for (String item : list) {
            if (item.length() > 1) {
        return result;
New to GrepCode? Check out our FAQ X