Really nice. Consider this rather simple and small example: SimilarityMatrix new on: #('hello world' 'welcome to our world' 'hello means bonjour' 'bye bye') by: [ :m1 : m2 | (m1 substrings intersection: m2 substrings) size / ((1 max: (m1 substrings union: m2 substrings) size) + 1) "NB penalty for small methods" ]; gridView The output is It visually says that ‘hello world’ is close to ‘welcome to out world’ and to ‘hello means bonjour’, because ‘hello’ and ‘world’ are in common. Alexandre |
- Re: [Pharo-dev] Similarity Matrix Stéphane Ducasse
- Re: [Pharo-dev] [Moose-dev] Re: Similarity Ma... Alexandre Bergel
- Re: [Pharo-dev] [Moose-dev] Re: Similarit... Stéphane Ducasse
- Re: [Pharo-dev] Similarity Matrix Alexandre Bergel
- Re: [Pharo-dev] Similarity Matrix Hernán Morales Durand
- Re: [Pharo-dev] Similarity Matrix Chris Muller
- Re: [Pharo-dev] Similarity Matrix Alexandre Bergel
- Re: [Pharo-dev] Similarity Matrix Hernán Morales Durand