| 1 |
// This file is part of ICU4X. For terms of use, please see the file |
| 2 |
// called LICENSE at the top level of the ICU4X source tree |
| 3 |
// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). |
| 4 |
|
| 5 |
mod lstm; |
| 6 |
pub use lstm::*; |
| 7 |
mod dictionary; |
| 8 |
pub use dictionary::*; |
| 9 |
#[cfg(feature = "unstable")] |
| 10 |
mod radical; |
| 11 |
#[cfg(feature = "unstable")] |
| 12 |
pub use radical::*; |
| 13 |
|
| 14 |
icu_provider::data_marker!( |
| 15 |
/// `SegmenterLstmWordLineAutoV1` |
| 16 |
SegmenterLstmAutoV1, |
| 17 |
"segmenter/lstm/auto/v1", |
| 18 |
LstmData<'static>, |
| 19 |
#[cfg(feature = "datagen")] |
| 20 |
attributes_domain = "segmenter" |
| 21 |
); |
| 22 |
|
| 23 |
icu_provider::data_marker!( |
| 24 |
/// `SegmenterDictionaryWordAutoV1` |
| 25 |
SegmenterDictionaryAutoV1, |
| 26 |
"segmenter/dictionary/auto/v1", |
| 27 |
UCharDictionaryBreakData<'static>, |
| 28 |
#[cfg(feature = "datagen")] |
| 29 |
attributes_domain = "segmenter" |
| 30 |
); |
| 31 |
|
| 32 |
icu_provider::data_marker!( |
| 33 |
/// `SegmenterDictionaryExtendedV1` |
| 34 |
SegmenterDictionaryExtendedV1, |
| 35 |
"segmenter/dictionary/extended/v1", |
| 36 |
UCharDictionaryBreakData<'static>, |
| 37 |
#[cfg(feature = "datagen")] |
| 38 |
attributes_domain = "segmenter" |
| 39 |
); |
| 40 |
|
| 41 |
#[cfg(feature = "unstable")] |
| 42 |
icu_provider::data_marker!( |
| 43 |
/// Marker for the singleton trie mapping code points to their Unihan IRG source radical IDs. |
| 44 |
SegmenterUnihanRadicalV1, |
| 45 |
"segmenter/unihan/radical/v1", |
| 46 |
UnihanRadicalsData<'static>, |
| 47 |
is_singleton = true |
| 48 |
); |