Helsinki-NLP / OPUS-CAT

OPUS-CAT is a collection of software which make it possible to OPUS-MT neural machine translation models in professional translation. OPUS-CAT includes a local offline MT engine and a collection of CAT tool plugins.
MIT License
71 stars 11 forks source link

It doesn't work #13

Closed patuscka closed 7 months ago

patuscka commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Hi!

Many thanks for the reply.

There is, indeed.

[ERR] Model path invalid: C:\Users...

What does that mean?

On Wed, Apr 7, 2021 at 8:31 AM TommiNieminen @.***> wrote:

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?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Helsinki-NLP/OPUS-CAT/issues/13#issuecomment-814838248, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATSKQLG5J6HXBKIATDREFPDTHQ7AZANCNFSM42QS7PHQ .

patuscka commented 3 years ago

OpusCatEng2

TommiNieminen commented 3 years ago

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 commented 3 years ago

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

patuscka commented 3 years ago

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

TommiNieminen commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 _OpusCatMTEnginev1.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 commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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).