Commit 063767aca254ff0df04f47bb5412fda333c04f0e
1 parent
c7d3ed38
Częściowa naprawa problemu ze znikającymi interpretacjami gdy prefiks nie pasuje wielkością liter
git-svn-id: svn://svn.nlp.ipipan.waw.pl/morfeusz/trunk@387 ff4e3ee1-f430-4e82-ade0-24591c43f1fd
Showing
3 changed files
with
7 additions
and
1 deletions
morfeusz/deserialization/morphInterps/InterpretedChunksDecoder4Analyzer.cpp
... | ... | @@ -157,7 +157,7 @@ namespace morfeusz { |
157 | 157 | } |
158 | 158 | const unsigned char* currPtr = getInterpretationsPtr(prefixChunk.interpsGroupPtr); |
159 | 159 | EncodedInterpretation ei = this->decodeEncodedInterp(currPtr, *prefixChunk.interpsGroupPtr); |
160 | - if (env.getCasePatternHelper().checkCasePattern(normalizedCodepoints, orthCodepoints, ei.orthCasePattern)) { | |
160 | + if (prefixChunk.forceIgnoreCase || env.getCasePatternHelper().checkCasePattern(normalizedCodepoints, orthCodepoints, ei.orthCasePattern)) { | |
161 | 161 | this->decodeLemma(ei.value, prefixChunk.codepointsNum, true, lemma4Prefixes); |
162 | 162 | return true; |
163 | 163 | } else { |
... | ... |
tests/analyzer/test_digits_roman/input.txt