Commit 063767aca254ff0df04f47bb5412fda333c04f0e

Authored by Michał Lenart
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
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
... ... @@ -41,3 +41,6 @@ XXC
41 41 LL
42 42 LLX
43 43  
  44 +x
  45 +xx
  46 +MmXiV
... ...
tests/analyzer/test_digits_roman/output.txt
... ... @@ -41,4 +41,7 @@
41 41 [0,1,LL,LL,ign,_,_]
42 42 [0,1,LLX,LLX,ign,_,_]
43 43 []
  44 +[0,1,x,X,romandig,_,_]
  45 +[0,1,xx,XX,romandig,_,_]
  46 +[0,1,MmXiV,MMXIV,romandig,_,_]
44 47  
... ...