|
152 | 152 | </programlisting> |
153 | 153 |
|
154 | 154 | In the first string, the set of trigrams is |
155 | | - <literal>{" w"," wo","ord","wor","rd "}</literal>. |
| 155 | + <literal>{" w"," wo","wor","ord","rd "}</literal>. |
156 | 156 | In the second string, the ordered set of trigrams is |
157 | | - <literal>{" t"," tw",two,"wo "," w"," wo","wor","ord","rds", ds "}</literal>. |
| 157 | + <literal>{" t"," tw","two","wo "," w"," wo","wor","ord","rds","ds "}</literal>. |
158 | 158 | The most similar extent of an ordered set of trigrams in the second string |
159 | 159 | is <literal>{" w"," wo","wor","ord"}</literal>, and the similarity is |
160 | 160 | <literal>0.8</literal>. |
|
172 | 172 | At the same time, <function>strict_word_similarity(text, text)</function> |
173 | 173 | has to select an extent that matches word boundaries. In the example above, |
174 | 174 | <function>strict_word_similarity(text, text)</function> would select the |
175 | | - extent <literal>{" w"," wo","wor","ord","rds", ds "}</literal>, which |
| 175 | + extent <literal>{" w"," wo","wor","ord","rds","ds "}</literal>, which |
176 | 176 | corresponds to the whole word <literal>'words'</literal>. |
177 | 177 |
|
178 | 178 | <programlisting> |
|
0 commit comments