Commit 0ec5a36
committed
OPENNLP-1850 Clarify that Extended_Pictographic symbols are kept as emoji
WordType classifies every Extended_Pictographic code point as EMOJI, which
includes symbol-like characters (copyright, trademark, double-exclamation,
arrows), so the word tokenizer keeps them rather than dropping them as
punctuation. State this in the WordTokenizer javadoc and add a test.1 parent 3c57a74 commit 0ec5a36
2 files changed
Lines changed: 15 additions & 1 deletion
File tree
- opennlp-core/opennlp-runtime/src
- main/java/opennlp/tools/tokenize/uax29
- test/java/opennlp/tools/tokenize/uax29
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
92 | 104 | | |
93 | 105 | | |
94 | 106 | | |
| |||
0 commit comments