GithubHelp home page GithubHelp logo

beer's People

Contributors

stanojevic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

beer's Issues

--norm documentation inconsistencies

Hi again Milos,

./beer --help indicates that --norm does not tokenize input, while the github documentation states the opposite, i.e. that one should use this option in order to tokenize (which is also what --norm name suggests).

Exception in thread "main" java.util.NoSuchElementException

Hi Milos,

When running BEER to evaluate French-to-English or German-to-English, I got an error in some situations. This only happens for some files, not all of them an not for other translation directions. I have not been able to find an explanation nor a way to correct this. I tried with --norm, --NoPunct and/or --NoLower options as well, but nothing changed.

I ran:

./beer --lang en --verbose -r ref -s out

ref and out files are attached.

beer_error_minimal_example.tar.gz

Here is the log (with --verbose)

Loading beer.alignment.MeteorAligner . . .
DONE

LOAD LEARNER FROM /people/pecheux/src/beer/models/en_func_exact_para_stem_syn_dep_weka MADE OF beer.learningToRank.Weka@479d31f3

Loading beer.ingredients.DependencyMatching . . .
Reading POS tagger model from edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger ... done [0.9 sec].
Loading depparse model file: edu/stanford/nlp/models/parser/nndep/english_SD.gz ...
PreComputed 100000, Elapsed Time: 1.969 (s)
Initializing dependency parser done [5.9 sec].
DONE
Loading beer.ingredients.Kendall . . .
DONE
Loading beer.ingredients.KendallScaled . . .
DONE
Loading beer.ingredients.PETcount . . .
DONE
Loading beer.ingredients.PETnodes . . .
DONE
Loading beer.ingredients.CharNGrams . . .
DONE
Loading beer.ingredients.FunctionAndContentWordsCoverage . . .
DONE
Loading beer.ingredients.WordMatchingCoverage . . .
DONE
Exception in thread "main" java.util.NoSuchElementException
at edu.stanford.nlp.process.DocumentPreprocessor$PlainTextIterator.next(DocumentPreprocessor.java:373)
at edu.stanford.nlp.process.DocumentPreprocessor$PlainTextIterator.next(DocumentPreprocessor.java:227)
at beer.ingredients.DependencyMatching$.parse(DependencyMatching.scala:196)
at beer.ingredients.DependencyMatching.eval(DependencyMatching.scala:22)
at beer.BEER$$anonfun$6$$anonfun$7.apply(BEER.scala:64)
at beer.BEER$$anonfun$6$$anonfun$7.apply(BEER.scala:64)
at scala.collection.immutable.List.map(List.scala:276)
at beer.BEER$$anonfun$6.apply(BEER.scala:64)
at beer.BEER$$anonfun$6.apply(BEER.scala:63)
at beer.BEER.directFactorsAndTokens(BEER.scala:240)
at beer.BEER.factorsAndTokens(BEER.scala:223)
at beer.Evaluation$$anonfun$evaluate$2$$anonfun$apply$5.apply(Evaluation.scala:120)
at beer.Evaluation$$anonfun$evaluate$2$$anonfun$apply$5.apply(Evaluation.scala:119)
at scala.collection.immutable.List.foreach(List.scala:381)
at beer.Evaluation$$anonfun$evaluate$2.apply(Evaluation.scala:119)
at beer.Evaluation$$anonfun$evaluate$2.apply(Evaluation.scala:107)
at scala.collection.immutable.List.foreach(List.scala:381)
at beer.Evaluation$.evaluate(Evaluation.scala:107)
at beer.Evaluation$.main(Evaluation.scala:23)
at beer.Evaluation.main(Evaluation.scala)

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.