Giter VIP home page Giter VIP logo

lindera-tantivy's People

Contributors

dependabot[bot] avatar fmassot avatar ikawaha avatar johtani avatar ken0x0a avatar mosuka avatar vbkaisetsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lindera-tantivy's Issues

Need support tantivy 0.21.1

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

lindera-tantivy 0.19 doesn't compile

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`

Automate release tasks

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.