Skip to content

Initial set-up #12

Open
Open
@soliviantar

Description

Hi. I am trying to get a dictionary from the eswiktionary dump. But I am a stranger to coding, so I am probably doing lots of stuff wrong.

I downloaded the dump and created the executable, but I get an error every time I run it. I think I'm not setting the Settings.toml file correctly or that maybe I should be putting it somewhere else.

This is the output of the executable (in PowerShell 7, as admin):

PS D:\IDM\dictionary-builder-master\target\release> .\dictionary-builder.exe
dictionnary-builder will use D:\IDM\dictionary-builder-master\target\release\dump\eswiktionary-latest-pages-articles-multistream.xml
thread 'main' panicked at src\main.rs:59:54:
Unable to create file: Os { code: 5, kind: PermissionDenied, message: "Acceso denegado." }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
PS D:\IDM\dictionary-builder-master\target\release> .\dictionary-builder.exe RUST_BACKTRACE=1
thread 'main' panicked at src\main.rs:25:79:
called `Result::unwrap()` on an `Err` value: configuration file "RUST_BACKTRACE=1Settings.toml" not found
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
PS D:\IDM\dictionary-builder-master\target\release>`

This is my Settings.toml (which I put inside the \release\ folder now):

root="D:\\IDM\\dictionary-builder-master\\target\\release\\dico"
words_file="D:\\IDM\\dictionary-builder-master\\target\\release\\dico\\words"
excluded_words_file="D:\\IDM\\dictionary-builder-master\\target\\release\\dico\\excluded"
xml_dump="D:\\IDM\\dictionary-builder-master\\target\\release\\dump\\eswiktionary-latest-pages-articles-multistream.xml"
with_definition = true
expression = true
language_filter = true
language = "Spanish"
language_short = "es"

Any help would be appreciated.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions