Merge branch 'local' into main
This commit is contained in:
commit
f51a6e6cd5
10
Cargo.toml
10
Cargo.toml
|
@ -1,13 +1,13 @@
|
|||
[package]
|
||||
name = "word-segmenters"
|
||||
version = "0.3.0"
|
||||
name = "instant-segment"
|
||||
version = "0.3.1"
|
||||
authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"]
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
description = "Fast English word segmentation"
|
||||
homepage = "https://github.com/InstantDomainSearch/word-segmenters"
|
||||
repository = "https://github.com/InstantDomainSearch/word-segmenters"
|
||||
documentation = "https://docs.rs/word-segmenters"
|
||||
homepage = "https://github.com/InstantDomainSearch/instant-segment"
|
||||
repository = "https://github.com/InstantDomainSearch/instant-segment"
|
||||
documentation = "https://docs.rs/instant-segment"
|
||||
|
||||
[features]
|
||||
__test_data = []
|
||||
|
|
|
@ -6,7 +6,7 @@ benchmark_group!(benches, short);
|
|||
benchmark_main!(benches);
|
||||
|
||||
fn short(bench: &mut Bencher) {
|
||||
let segmenter = word_segmenters::test_data::segmenter();
|
||||
let segmenter = instant_segment::test_data::segmenter();
|
||||
let mut out = Vec::new();
|
||||
bench.iter(|| segmenter.segment("thisisatest", &mut out));
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use once_cell::sync::Lazy;
|
||||
|
||||
use word_segmenters::Segmenter;
|
||||
use instant_segment::Segmenter;
|
||||
|
||||
#[test]
|
||||
fn test_segment_0() {
|
||||
|
@ -168,4 +168,4 @@ fn assert_segments(s: &[&str]) {
|
|||
assert_eq!(cmp, s);
|
||||
}
|
||||
|
||||
static SEGMENTER: Lazy<Segmenter> = Lazy::new(word_segmenters::test_data::segmenter);
|
||||
static SEGMENTER: Lazy<Segmenter> = Lazy::new(instant_segment::test_data::segmenter);
|
||||
|
|
Loading…
Reference in New Issue