Coder Social home page Coder Social logo

Comments (8)

bzaar avatar bzaar commented on May 29, 2024 1

Hi everyone,

Sorry a bit late to the party.

You need to close the file after you're done writing to it:

using (var file = File.Create(dawgpath))
    dawg.SaveTo(file);

I will look into making the API more intuitive.

@Mukarillo, you can do anything you want with the library, once you get a commercial license. :)

from dawgsharp.

Nogbit avatar Nogbit commented on May 29, 2024

I'm having the same problems (same line and error).

Though I did remove a bad line from my dictionary file and converted it all to lowercase. Now I get to line 78 in your screenshot with the exact same error.

from dawgsharp.

Nogbit avatar Nogbit commented on May 29, 2024

It's not a problem with the word file as I get the same errors with the file in this repos test project at https://github.com/bzaar/DawgSharp/blob/master/DawgSharp.UnitTests/eneko-words.txt.

from dawgsharp.

Mukarillo avatar Mukarillo commented on May 29, 2024

@Nogbit If I remember correctly I solved the issue by creating the file, and then saving, like this:

var file = File.Create(dawgpath);
dawg.SaveTo(file);

It has something to do with the position of the stream not being initialized correctly or something, But since the project's is licensed under GPLv3, I couldn't use to what I want... so I just gave up debugging.

Good luck tho :)

from dawgsharp.

Nogbit avatar Nogbit commented on May 29, 2024

@bzaar thanks, that worked!

from dawgsharp.

Nogbit avatar Nogbit commented on May 29, 2024

@Mukarillo I sent you an email to [email protected] asking about licensing cost, it may have went to your spam?

from dawgsharp.

Mukarillo avatar Mukarillo commented on May 29, 2024

@Nogbit I am not the developer of the tool, @bzaar is. Maybe he can help you with that 👍

from dawgsharp.

bzaar avatar bzaar commented on May 29, 2024

@Nogbit, I replied to your email.

from dawgsharp.

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.