Giter Club home page Giter Club logo

Comments (8)

izziiyt avatar izziiyt commented on May 18, 2024 1

@polm I found good example 国家公務員 ! I'll update soon.

from sudachipy.

izziiyt avatar izziiyt commented on May 18, 2024

This all connected result is from full-dic.

from sudachipy.

polm avatar polm commented on May 18, 2024

Oh wow, I completely missed the comment explaining that - sorry for the false alarm!

Would it be better to use a string where the tokenization is the same with the full and core dict?

from sudachipy.

izziiyt avatar izziiyt commented on May 18, 2024

I appreciate any concern, thank you.
I agree almost. Actually one user (you) confused.

  • mode A,B,C return different tokenized results
  • all dic return same tokenized patterns with mode

is the best example.

But I think core dic example is enough if different mode returns different pattern because core dic is default dic.

from sudachipy.

MastafaF avatar MastafaF commented on May 18, 2024

Hi, for non-Japanese speakers, split modes are a bit confusing. Could you elaborate on what they correspond to? :)
Also, how can we get an output similar to mecab one from command line (mecab -O wakati input_file -o output_file returns a file with tokenized strings)?
I want to get rid of NER, etc from the output file obtained from sudachipy tokenize input_file -o output_file

Thank you!

from sudachipy.

sorami avatar sorami commented on May 18, 2024

@MastafaF

The split modes are invented and defined by us, and there isn't really anything that each mode corresponds to, but in our paper, "Sudachi: a Japanese Tokenizer for Business" (Takaoka et al., LREC2018), we state that

  • A Unit (short): Compatible with UniDic
  • B Unit (middle): Similar to the “words” in general sense
  • C Unit (NE): Named entities

from sudachipy.

sorami avatar sorami commented on May 18, 2024

@MastafaF

Getting only the tokenized words without Part of Speech tags; Use SudachiPy as a Python library and call surface() method.

e.g.,

>>> from sudachipy import dictionary
>>> tokenizer_obj = dictionary.Dictionary().create()
>>> [m.surface() for m in tokenizer_obj.tokenize("これはテストの文です。")]
['これ', 'は', 'テスト', 'の', '文', 'です', '。']

from sudachipy.

sorami avatar sorami commented on May 18, 2024

@MastafaF

Also, your questions are not related to this issue #70; it would be nice if you could create a new issue for the questions next time. Thanks!

from sudachipy.

Related Issues (20)

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.