• Alfredo Di Napoli's avatar
    Fix bug in buildPatterns related to case sensitiveness · 1642c59b
    Alfredo Di Napoli authored
    Fixes a bug in the implementation of `buildPatterns`. In particular,
    when we are building a `Pattern`, we need to do so in a case insenstive
    fashion, otherwise later in the call to `replaceTerms` we would be
    calling this from `extractTermsWithList` that cast everything into
    lowercase due to the use of `monoTextsBySentence`.
    
    This means that before this commit if we tried to search "Map" into
    the text "Map is what I use when I'm lost" we wouldn't get a match,
    because the latter would be converted into lowercase first
    (i.e. "map is what i use when i'm lost") and we were trying to look
    for the string "Map" (i.e. the former) into the transformer, yielding
    no matches.
    1642c59b
Name
Last commit
Last update
..
Config Loading commit data...
Ext Loading commit data...
Flow Loading commit data...
LinearAlgebra Loading commit data...
Mail Loading commit data...
Methods Loading commit data...
NodeStory Loading commit data...
Notifications Loading commit data...
Text Loading commit data...
Types Loading commit data...
Utils Loading commit data...
Viz Loading commit data...
Worker Loading commit data...
Config.hs Loading commit data...
LinearAlgebra.hs Loading commit data...
Mail.hs Loading commit data...
NLP.hs Loading commit data...
NodeStory.hs Loading commit data...
Notifications.hs Loading commit data...
Statistics.hs Loading commit data...
Text.hs Loading commit data...
Types.hs Loading commit data...
Utils.hs Loading commit data...
Viz.hs Loading commit data...
Worker.hs Loading commit data...