Merge branch 'local' into main

This commit is contained in:
Dirkjan Ochtman 2020-12-16 10:41:59 +01:00
commit f51a6e6cd5
3 changed files with 8 additions and 8 deletions

View File

@ -1,13 +1,13 @@
[package] [package]
name = "word-segmenters" name = "instant-segment"
version = "0.3.0" version = "0.3.1"
authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"] authors = ["Dirkjan Ochtman <dirkjan@ochtman.nl>"]
edition = "2018" edition = "2018"
license = "Apache-2.0" license = "Apache-2.0"
description = "Fast English word segmentation" description = "Fast English word segmentation"
homepage = "https://github.com/InstantDomainSearch/word-segmenters" homepage = "https://github.com/InstantDomainSearch/instant-segment"
repository = "https://github.com/InstantDomainSearch/word-segmenters" repository = "https://github.com/InstantDomainSearch/instant-segment"
documentation = "https://docs.rs/word-segmenters" documentation = "https://docs.rs/instant-segment"
[features] [features]
__test_data = [] __test_data = []

View File

@ -6,7 +6,7 @@ benchmark_group!(benches, short);
benchmark_main!(benches); benchmark_main!(benches);
fn short(bench: &mut Bencher) { fn short(bench: &mut Bencher) {
let segmenter = word_segmenters::test_data::segmenter(); let segmenter = instant_segment::test_data::segmenter();
let mut out = Vec::new(); let mut out = Vec::new();
bench.iter(|| segmenter.segment("thisisatest", &mut out)); bench.iter(|| segmenter.segment("thisisatest", &mut out));
} }

View File

@ -2,7 +2,7 @@
use once_cell::sync::Lazy; use once_cell::sync::Lazy;
use word_segmenters::Segmenter; use instant_segment::Segmenter;
#[test] #[test]
fn test_segment_0() { fn test_segment_0() {
@ -168,4 +168,4 @@ fn assert_segments(s: &[&str]) {
assert_eq!(cmp, s); 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);