Open dtcoughlin opened 3 years ago
Thanks for the report. I don't have time to work on this right now, but I'll keep the issue open in case someone else does (or I do, at a later date).
Thank you. I thought that was preventing me from running the program (I have never used Cargo / Rust before). It turned out that I needed to execute the ngrams command from ./target/debug/. The program did exactly what I needed – I was analyzing a large number of legal opinions to extract relevant theories / law. Thank you for making the tool available.
Daniel
-- Daniel Coughlin Coughlin Law Office, LLC Mail: 821 Main St, PO Box 116, Sabetha, KS 66534 Phone: 785.284.2843 Fax: 785.285.6285
What a cool use of ngram-tools! Thanks for letting me know.
I'm getting the following error when trying to compile the library with cargo 1.49.0:
warning:
...` range patterns are deprecated --> src/pipeline/normalize.rs:32:17..=
for an inclusive range= note:
#[warn(ellipsis_inclusive_range_patterns)]
on by defaultwarning:
...
range patterns are deprecated --> src/pipeline/normalize.rs:33:17 | 33 | b'a'...b'z' => CharType::Letter(*this_char), | ^^^ help: use..=
for an inclusive rangedyn
are deprecated --> src/server.rs:13:31dyn
:dyn Call_Ping
= note:
#[warn(bare_trait_objects)]
on by defaultwarning: trait objects without an explicit
dyn
are deprecated --> src/server.rs:18:33 | 18 | fn lookup(&self, call: &mut Call_Lookup, ngram: String) -> varlink::Result<()> { | ^^^^^^^^^^^ help: usedyn
:dyn Call_Lookup
warning: trait objects without an explicit) -> varlink::Result<()> {
| ^^^^^^^^^^^^^^ help: use
dyn
are deprecated --> src/server.rs:28:37 | 28 | fn lookup_all(&self, call: &mut Call_LookupAll, ngrams: Vecdyn
:dyn Call_LookupAll
warning: trait objects without an explicit = std::result::Result<T, Box>;
| ^^^^^^^^^^^^^^^^^ help: use
dyn
are deprecated --> src/client.rs:8:45 | 8 | type Resultdyn
:dyn std::error::Error
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:87:21 | 87 | let mut s: &StdError = self; | ^^^^^^^^ help: usedyn
:dyn StdError
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:183:33 | 183 | fn lookup(&self, call: &mut Call_Lookup, r#ngram: String) -> varlink::Result<()>; | ^^^^^^^^^^^ help: usedyn
:dyn Call_Lookup
warning: trait objects without an explicit) -> varlink::Result<()>;
| ^^^^^^^^^^^^^^ help: use
dyn
are deprecated --> src/org_wordtree_ngrams.rs:184:37 | 184 | fn lookup_all(&self, call: &mut Call_LookupAll, r#ngrams: Vecdyn
:dyn Call_LookupAll
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:185:31 | 185 | fn ping(&self, call: &mut Call_Ping, r#ping: String) -> varlink::Result<()>; | ^^^^^^^^^ help: usedyn
:dyn Call_Ping
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:189:26 | 189 | _bufreader: &mut BufRead, | ^^^^^^^ help: usedyn
:dyn BufRead
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:240:16 | 240 | inner: Box<VarlinkInterface + Send + Sync>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: usedyn
:dyn VarlinkInterface + Send + Sync
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:243:23 | 243 | pub fn new(inner: Box<VarlinkInterface + Send + Sync>) -> VarlinkInterfaceProxy { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: usedyn
:dyn VarlinkInterface + Send + Sync
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:256:25 | 256 | bufreader: &mut BufRead, | ^^^^^^^ help: usedyn
:dyn BufRead
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:275:52 | 275 | self.inner.lookup(call as &mut Call_Lookup, args.r#ngram) | ^^^^^^^^^^^ help: usedyn
:dyn Call_Lookup
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:293:50 | 293 | .lookup_all(call as &mut Call_LookupAll, args.r#ngrams) | ^^^^^^^^^^^^^^ help: usedyn
:dyn Call_LookupAll
warning: trait objects without an explicit
dyn
are deprecated --> src/org_wordtree_ngrams.rs:310:50 | 310 | self.inner.ping(call as &mut Call_Ping, args.r#ping) | ^^^^^^^^^ help: usedyn
:dyn Call_Ping
window_size
--> src/pipeline.rs:97:5_window_size
= note:
#[warn(unused_variables)]
on by defaultwarning: 18 warnings emitted`