lindera-morphology / lindera-tantivy Goto Github PK
View Code? Open in Web Editor NEWLindera tokenizer for Tantivy.
License: MIT License
Lindera tokenizer for Tantivy.
License: MIT License
It seems not support latest tantivy version(0.21.1)
the trait bound `LinderaTokenizer: Tokenizer` is not satisfied
the following other types implement trait `Tokenizer`:
CangJieTokenizer
Box<(dyn tantivy::tokenizer::tokenizer::BoxableTokenizer + 'static)>
tantivy::tokenizer::alphanum_only::AlphaNumOnlyFilterWrapper<T>
tantivy::tokenizer::ascii_folding_filter::AsciiFoldingFilterWrapper<T>
FacetTokenizer
tantivy::tokenizer::lower_caser::LowerCaserFilter<T>
NgramTokenizer
RawTokenizer
and 7 others
required for `TextAnalyzer` to implement `From<LinderaTokenizer>`rustc
There's a compile error due to invalid arguments
โ lindera-tantivy git:(main) cargo build
Blocking waiting for file lock on build directory
Compiling lindera-tantivy v0.19.0 (/home/pascal/LinuxData/Development/lindera-tantivy)
error[E0061]: this function takes 4 arguments but 0 arguments were supplied
--> src/tokenizer.rs:34:24
|
34 | tokenizer: LTokenizer::new()?,
| ^^^^^^^^^^^^^^^-- multiple arguments are missing
|
note: associated function defined here
--> /home/pascal/.cargo/registry/src/github.com-1ecc6299db9ec823/lindera-0.19.5/src/tokenizer.rs:241:12
|
241 | pub fn new(
| ^^^
help: provide the arguments
|
34 | tokenizer: LTokenizer::new(/* lindera_core::dictionary::Dictionary */, /* Option<lindera_core::user_dictionary::UserDictionary> */, /* lindera_core::viterbi::Mode */, /* bool */)?,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error[E0277]: the `?` operator can only be applied to values that implement `Try`
--> src/tokenizer.rs:34:24
|
34 | tokenizer: LTokenizer::new()?,
| ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `lindera::tokenizer::Tokenizer`
|
= help: the trait `Try` is not implemented for `lindera::tokenizer::Tokenizer`
error[E0599]: no function or associated item named `with_config` found for struct `lindera::tokenizer::Tokenizer` in the current scope
--> src/tokenizer.rs:40:36
|
40 | tokenizer: LTokenizer::with_config(config)?,
| ^^^^^^^^^^^ function or associated item not found in `lindera::tokenizer::Tokenizer`
Upgrade Tantivy to 0.14.0.
Update workflows.
regression.yml : Run tests on three platforms (Linux/Windows/OSX) for each push/pull request.
periodic.yml: Run tests on stable/beta/nightly version of Rust periodically.
release.yml: When create tag, release it to GitHub and publish to crates.io.
Bump up version to 0.7.2.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.