forked from apache/lucene-solr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LUCENE-9736: Hunspell: support MAP-based suggestions for groups of si…
…milar letters (apache#2314)
- Loading branch information
1 parent
061233c
commit 6536263
Showing
7 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/map.aff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# With MAP suggestion, Hunspell can add missing accents to a word. | ||
|
||
# switch off ngram suggestion for testing | ||
MAXNGRAMSUGS 0 | ||
|
||
MAP 3 | ||
MAP u�� | ||
MAP o�� | ||
MAP �(ss) |
4 changes: 4 additions & 0 deletions
4
lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/map.dic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
3 | ||
Fr�hst�ck | ||
t�k�rf�r� | ||
gro� |
3 changes: 3 additions & 0 deletions
3
lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/map.sug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Frühstück | ||
tükörfúró | ||
groß |
3 changes: 3 additions & 0 deletions
3
lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/map.wrong
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Fruhstuck | ||
tukorfuro | ||
gross |