Rename crate to instant-segment
This commit is contained in:
parent
dcc1c5edc1
commit
275c3c63cb
|
@ -1,13 +1,13 @@
|
|||
[package]
|
||||
name = "word-segmenters"
|
||||
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