Home | History | Annotate | Download | only in JAJP

Lines Matching refs:sentence

57     /** part of speech (end of clause/not end of sentence) */
61 /** part of speech (end of sentence) */
158 WnnSentence[] sentence = mSentenceBuffer;
162 if (start != 0 && sentence[start-1] == null) {
176 if (sentence[idx] != null) {
178 if (sentence[idx].frequency > sentence[start-1].frequency + CLAUSE_COST + FREQ_LEARN) {
183 if (sentence[idx].frequency > CLAUSE_COST + FREQ_LEARN) {
194 /* get the clause which can be the end of the sentence */
197 /* get the clause which is not the end of the sentence */
206 /* make a sub-sentence */
211 ws = new WnnSentence(sentence[start-1], bestClause);
215 /* update the best sub-sentence on the cache buffer */
216 if (sentence[idx] == null || (sentence[idx].frequency < ws.frequency)) {
217 sentence[idx] = ws;
223 if (sentence[input.length() - 1] != null) {
224 return sentence[input.length() - 1];
237 WnnSentence sentence = consecutiveClauseConvert(input);
240 if (sentence != null) {
241 resultList.add(0, sentence);