segment-any-text / wtpsplit

Toolkit to segment text into sentences or other semantic units in a robust, efficient and adaptable way.
MIT License
715 stars 41 forks source link

rust installation failure on 0.3.1 #9

Closed mooreniemi closed 4 years ago

mooreniemi commented 4 years ago

Followed your Rust instructions and am hitting this failure:

   Compiling nnsplit v0.3.1
error: couldn't read /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/nnsplit-0.3.1/src/../../models.csv: No such file or directory (os error 2)
  --> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/nnsplit-0.3.1/src/model_loader.rs:10:23
   |
10 |         let raw_csv = include_str!("../../models.csv");
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to previous error

error: could not compile `nnsplit`.

When I look inside .cargo/registry/src/github.com-1ecc6299db9ec823/nnsplit-0.3.1/ I see there is no models.csv. If I manually add it by copying down raw, it still fails on the path.

bminixhofer commented 4 years ago

Hi, thanks for reporting! Was kind of a silly mistake, I just pushed a fix. I'll do a release when it passes CI.

bminixhofer commented 4 years ago

This is now fixed as of version 0.3.4.