Giter VIP home page Giter VIP logo

Comments (7)

zbhatti-dev avatar zbhatti-dev commented on June 21, 2024

I am using the bicleaner stuff downloaded from the repositories flagged in github...is there any way to bypass the bicleaner? I dont think it was mandatory previously...

from bitextor.

zbhatti-dev avatar zbhatti-dev commented on June 21, 2024

OK I just commented out the bicleaner...

from bitextor.

zbhatti-dev avatar zbhatti-dev commented on June 21, 2024

yes I am trying to use the bicleaner, but following error being seen:

Error in rule bicleaner:
jobid: 10
output: /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bicleaner.scores.xz
shell:

    slang=$(egrep "source_lang" /opt/bitextor/bicleaner-model/en-fr.yaml | cut -d " " -f 2)
    if [ "$slang" == "fr" ]; then
      xzcat -T 0 -f /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bifixer.xz |
       /opt/bitextor/preprocess/bin/cache -k 6 python3 /opt/bitextor/bicleaner/bicleaner/bicleaner_classifier_lite.py --score_only -q - - /opt/bitextor/bicleaner-model/en-fr.yaml |
      paste <(xzcat -T 0 /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bifixer.xz) - |
      xz -T 0 > /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bicleaner.scores.xz
    else
      xzcat -T 0 -f /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bifixer.xz |
      awk ' BEGIN {FS="	"; OFS="	"} { t = $3; $3 = $4; $4 = t; print;}' |
       /opt/bitextor/preprocess/bin/cache -k 6 python3  /opt/bitextor/bicleaner/bicleaner/bicleaner_classifier_lite.py --score_only -q - - /opt/bitextor/bicleaner-model/en-fr.yaml |
      paste <(xzcat -T 0 /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bifixer.xz) - |
      xz -T 0 > /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bicleaner.scores.xz
    fi
    
    (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!)

from bitextor.

zbhatti-dev avatar zbhatti-dev commented on June 21, 2024

Traceback (most recent call last):
File "/opt/bitextor/bicleaner/bicleaner/bicleaner_classifier_lite.py", line 135, in initialization
args.good_examples = metadata_yaml["good_examples"]
KeyError: 'good_examples'
terminate called after throwing an instance of 'util::EndOfFileException'
what(): End of file
/bin/bash: line 12: 376 Done xzcat -T 0 -f /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bifixer.xz
377 | awk ' BEGIN {FS=" "; OFS=" "} { t = $3; $3 = $4; $4 = t; print;}'
378 Aborted | /opt/bitextor/preprocess/bin/cache -k 6 python3 /opt/bitextor/bicleaner/bicleaner/bicleaner_classifier_lite.py --score_only -q - - /opt/bitextor/bicleaner-model/en-fr.yaml
379 | paste <(xzcat -T 0 /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bifixer.xz) -
380 | xz -T 0 > /opt/bitextor/transient-default-en-fr-small/sentence-pair-testing/hunalign.bicleaner.scores.xz
[Sat Mar 6 15:37:26 2021]

from bitextor.

lpla avatar lpla commented on June 21, 2024

Seems like you are using a modern model for Bicleaner (probably for version 0.14) and your Bitextor installation still uses a previous one (0.13 IIRC). Try using the ones for bicleaner 0.13: https://github.com/bitextor/bicleaner-data/releases/tag/v1.3

from bitextor.

zbhatti-dev avatar zbhatti-dev commented on June 21, 2024

OK thanks for getting back to me so quickly...will try

from bitextor.

zbhatti-dev avatar zbhatti-dev commented on June 21, 2024

RESULT...brilliant what you suggested worked 0.13 version fantastic!

from bitextor.

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.