Coder Social home page Coder Social logo

go-darts's People

Contributors

awsong avatar bryant1410 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  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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

go-darts's Issues

DAWG - usage issues.

func main() {
d, err := darts.Import("../src/darts/darts.txt", "darts.lib", true)
// fmt.Println(err)
if err == nil {

    key := []byte("考察队员")
    r := d.CommonPrefixSearch(key, 0)
    fmt.Println(r)
    for i := 0; i < len(r); i++ {
        fmt.Println("kk ", string(key[:r[i].PrefixLen]))
    }

}

Produces:

input dict length: 109135
build out length 373050
18.472ms
[]
[Finished in 2.5s]

Without DAWG = True- it works just fine. ??

Just playing with it, interested in Double-Array Trie and DAWG specifically. Thank you.

Code Example

In the section of code example, unicode version. In fact, Imports func takes 3 arguments, however, there are only 2. useDAWG is missing.

a question about begin and character encoding

Hello, I haven't been able to figure out a few questions. Can you help me?

If it's just to satisfy:

for i := 0; i < len(siblings); i++ {

d. darts.Check [begin+int(siblings[i].code)] = begin

}

Why is the value of begin begin = pos - int (siblings [0]. Code'), based on what consideration? Why not start with 0

And why code = Unicode + 1

Thank you

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.