Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It doesn't work #13

Closed
patuscka opened this issue Apr 7, 2021 · 12 comments
Closed

It doesn't work #13

patuscka opened this issue Apr 7, 2021 · 12 comments

Comments

@patuscka
Copy link

patuscka commented Apr 7, 2021

I don't know why this is not working on my PC. I downloaded and installed the model, but when I try to translate a text nothing happens. Could you please help me with that?

OpusCatEng

@TommiNieminen
Copy link
Collaborator

Hi,

That's strange, there should be some extra information in the log file. You can open the log file folder by pasting %LOCALAPPDATA%/opuscat/logs in the Windows Explorer address bar and pressing Enter. There should be a log file there, probably with the name opuscat_log20210407.txt. Could you check if there's an error message there?

@patuscka
Copy link
Author

patuscka commented Apr 7, 2021 via email

@patuscka
Copy link
Author

patuscka commented Apr 7, 2021

OpusCatEng2

@TommiNieminen
Copy link
Collaborator

Might be something strange with the format of the model path. Could you paste the last two directories from the path in the error message (or the whole path with user name removed)

@TommiNieminen
Copy link
Collaborator

Actually, having thought about this a bit, there might something wrong with the model. What's the language pair of the model?

@patuscka
Copy link
Author

patuscka commented Apr 7, 2021

It's en to br, and br to en.

@TommiNieminen
Copy link
Collaborator

I can get those models to work, so it's probably something else. Btw. br language code is for Breton, so it might not be the one you are looking for :). There are no specific Brazilian Portuguese models in the current version, although the newest unreleased version does contain them (should be released in a month). I'd like to debug this problem, though. Could you check if you can get one of the pt models working (e.g. en-pt)?

@patuscka
Copy link
Author

patuscka commented Apr 7, 2021

Oh, I see! So that wouldn't have worked anyway hehe
I tried the en-pt model but it didn't work either.

OpusCatEng3

@TommiNieminen
Copy link
Collaborator

Ok, I think it might either be a permissions issue or a hardware issue. There are two things you can do to check this:

  1. Open a command prompt in the OPUS-CAT MT Engine folder (shift+right-click in the folder and select Open PowerShell window here) and enter the following command:
    .\StartMosesBpeMtPipe.bat %localappdata%\opuscat\models\en-pt\opus-2019-12-04
    Then type an English sentence and press Enter, and you should see either a translation or an error message:
    kuva

  2. Right-click the OpusCatMTEngine_v1.0.0.4.zip file you downloaded, select Properties and then check the Unblock checkbox at the bottom of the Properties window (where it says This file came from another computer and might be blocked to help protect this computer). Here's how it looks on my computer, may be different with Brazilian Windows:
    kuva
    Once you've unblocked the file, extract it again and then try to run the translation.

@TommiNieminen
Copy link
Collaborator

There's a new release of OPUS-CAT that fixes some bugs with the translation functionality, it might resolve this problem as well.

-Tommi

@mariagabv
Copy link

Hi! I think I have a similar problem. I just downloaded the model but it won´t work. The language pair of the model is EN-DE. How can I solve it?

image

@TommiNieminen
Copy link
Collaborator

Hi,

There might be something about the error in the log file, it's located in the folder %LOCALAPPDATA%/opuscat/logs. You can open the folder by copying and pasting that path in the address bar of Windows explorer (press Windows key + E to open explorer). The error details should be in the newest log file.

Without seeing the log file, I would guess that this error maybe has something to do with the fact that this particular model is one of the new transformer-big models. Those models are larger than the previous OPUS-MT models, so they might not work on all computers (although this particular model does work on my computer, which is a pretty average one). One of the earlier models might work for you, like the one highlighted in this picture:

image

I'm working on a new version where transformer-big models will be hidden by default (they also have the disadvantage of not being fine-tuneable).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants