mikelewis0 / easyccg Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://homepages.inf.ed.ac.uk/s1049478/easyccg.html
License: MIT License
Home Page: http://homepages.inf.ed.ac.uk/s1049478/easyccg.html
License: MIT License
Exception in thread "main" uk.co.flamingpenguin.jewel.cli.ArgumentValidationException: Option is mandatory: --model -m value : E:\master\eclipse_program\easy\model
at uk.co.flamingpenguin.jewel.cli.ValidationErrorBuilderImpl.validate(ValidationErrorBuilderImpl.java:71)
at uk.co.flamingpenguin.jewel.cli.ArgumentValidatorImpl.validateArguments(ArgumentValidatorImpl.java:117)
at uk.co.flamingpenguin.jewel.cli.AbstractCliImpl.parseArguments(AbstractCliImpl.java:36)
at uk.co.flamingpenguin.jewel.cli.CliFactory.parseArguments(CliFactory.java:63)
at uk.ac.ed.easyccg.main.EasyCCG.main(EasyCCG.java:91)
Does it just pass the tags though or help improve performance or add any other value to the tagger / parser?
Is there a way to output the type of rules used? I guess forward/backward application is straight-forward, but it would be nice to have 'lex' or 'type-raising', 'composition', etc.
While using a prolog output, POSandNERtagged input and the rebanked model:
java -jar easyccg.jar --model model_rebank/ -i POSandNERtagged -o prolog
On the following input:
A|DT|O biker|NN|O is|VBZ|O jumping|VBG|O in|IN|O the|DT|O air|NN|O ,|,|O alone|RB|O
Fails to parse due to "a noisy rule" used by the rebanked model:
Exception in thread "pool-1-thread-6" java.lang.RuntimeException: Unknown rule type: NOISE
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter.getRuleName(ParsePrinter.java:363)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter.access$0(ParsePrinter.java:348)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter$DerivationPrinter.visit(ParsePrinter.java:428)
at uk.ac.ed.easyccg.syntax.SyntaxTreeNode$SyntaxTreeNodeBinary.accept(SyntaxTreeNode.java:53)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter$DerivationPrinter.visit(ParsePrinter.java:431)
at uk.ac.ed.easyccg.syntax.SyntaxTreeNode$SyntaxTreeNodeBinary.accept(SyntaxTreeNode.java:53)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter$DerivationPrinter.visit(ParsePrinter.java:431)
at uk.ac.ed.easyccg.syntax.SyntaxTreeNode$SyntaxTreeNodeBinary.accept(SyntaxTreeNode.java:53)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter$DerivationPrinter.visit(ParsePrinter.java:431)
at uk.ac.ed.easyccg.syntax.SyntaxTreeNode$SyntaxTreeNodeBinary.accept(SyntaxTreeNode.java:53)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter$DerivationPrinter.visit(ParsePrinter.java:431)
at uk.ac.ed.easyccg.syntax.SyntaxTreeNode$SyntaxTreeNodeBinary.accept(SyntaxTreeNode.java:53)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter$DerivationPrinter.visit(ParsePrinter.java:431)
at uk.ac.ed.easyccg.syntax.SyntaxTreeNode$SyntaxTreeNodeBinary.accept(SyntaxTreeNode.java:53)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter.printDerivation(ParsePrinter.java:409)
at uk.ac.ed.easyccg.syntax.ParsePrinter$PrologPrinter.printParse(ParsePrinter.java:395)
at uk.ac.ed.easyccg.syntax.ParsePrinter.print(ParsePrinter.java:45)
at uk.ac.ed.easyccg.main.EasyCCG$1.run(EasyCCG.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Due to the below lines, doParsing cannot be called parallely.
lines 255-258:
taggingTimeOnly.start();
supertags = tagger.tag(input.getInputWords());
} finally {
taggingTimeOnly.stop();
lines 263-267:
parsingTimeOnly.start();
List<SyntaxTreeNode> parses = parseAstar(supertags);
return parses;
} finally {
parsingTimeOnly.stop();
Error message when doParsing is called in multiple threads
java.lang.IllegalStateException: This stopwatch is already stopped.
com.google.common.base.Preconditions.checkState(Preconditions.java:150)
com.google.common.base.Stopwatch.stop(Stopwatch.java:177)
uk.ac.ed.easyccg.syntax.ParserAStar.doParsing(ParserAStar.java:267)
uk.ac.ed.easyccg.syntax.ParserAStar.parseSentence(ParserAStar.java:204)
uk.ac.ed.easyccg.syntax.ParserAStar.parse(ParserAStar.java:135)
others.EasyCcgCli.parse(EasyCcgCli.java:91)
in.sivareddy.graphparser.cli.CcgParseToUngroundedGraphs.processText(CcgParseToUngroundedGraphs.java:111)
in.sivareddy.graphparser.servlet.UngroundedSemanticParserServlet.doGet(UngroundedSemanticParserServlet.java:73)
in.sivareddy.graphparser.servlet.UngroundedSemanticParserServlet.doPost(UngroundedSemanticParserServlet.java:106)
javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
Hi,
Does it publish to maven Central? if not, are you planning to do so?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.