-
Notifications
You must be signed in to change notification settings - Fork 27
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
Allow ACE options in 'process' command #180
Comments
@mcmillanmajora this looks like a good one for you. Note that I've moved the code for commands to About the |
I think I've got all the pieces connected, but again I'm not quite sure how to test this automatically. |
This one may be harder to test since you're changing the way ACE is called and not handling ACE output. You'd need to do something like mock a test suite and monkeypatch several methods in Btw, there is no longer an |
Sorry for the possible silly question:
What is the Ace Transferer? |
@arademaker these are all classes which manage how PyDelphin calls ACE and interprets its responses. E.g., AceGenerator passes the |
Assigning to myself as I have a fix in my branch. |
Sorry for another silly question:
Can you say more about it ? Are you talking about the way art calls Ace? That is, we need to pass to art the complete ace command line. Right ? |
Yes, but PyDelphin is a bit more restricted. That is,
And PyDelphin uses
Note the |
Not sure if I understood the status of the implementation. For me:
Options are not allowed yet? |
I just committed this change so it should be in the develop branch and not yet installable by pip. Unfortunately I forgot to reset the version string so it will also say v0.9.1.
…On Feb 19, 2019, 12:23 AM +0800, Alexandre Rademaker ***@***.***>, wrote:
Not sure if I understood the status of the implementation. For me:
$ delphin process -g ~/hpsg/ace/erg.dat --options='-n 500 --timeout=60 --max-words=200 --max-chart-megabytes=4000 --max-unpack-megabytes=5000 --rooted-derivations --udx --disable-generalization' repsol-aa
usage: delphin [-h] [-V] {convert,select,mkprof,process,compare,repp} ...
delphin: error: unrecognized arguments: repsol-aa
leme:tmp ar$ delphin -V
delphin 0.9.1
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
How long it takes ? Is it better to use the source repo ? I am blocked, no option so far worked for treebanking.
Without the options , processing is taking too long and producing for almost all sentences more than 10000 trees.
…Sent from my iPhone
|
How long does it take to make a release, you mean? I’m committing these changes to make a v0.9.2 release before the v1.0.0 because there were several annoying bugs I wanted fixed. The v0.9.2 release should be out within the week, I think. I don’t really recommend PyDelphin for serious treebanking yet, not until the issue with incremental profile read/writing is fixed, although it should be fine for smaller test suites (< 2000 items or so) with a suitable result limit (10?). Full-forest support won’t be until v1.0.0 I think.
…On Feb 19, 2019, 8:01 AM +0800, Alexandre Rademaker ***@***.***>, wrote:
How long it takes ? Is it better to use the source repo ? I am blocked, no option so far worked for treebanking.
Without the options , processing is taking too long and producing for almost all sentences more than 10000 trees.
Sent from my iPhone
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The
delphin process
command instantiates an AceParser, AceTransferer, or AceGenerator with the given grammar, but doesn't allow further customization of the process. We could add additional arguments to theprocess
command that are passed along, but this would increase the complexity of the command and may cause collisions in option names. Instead,art
's strategy of passing an option string would work, but we'll need to split the string to work withdelphin.interfaces.ace
's way of handling options. So...-o / --options
option for theprocess
command (art
uses-a
, but-a
is already taken)shlex.split()
to split the options string into a listcmdargs
parameter when instantiating ACEThe
-g
option is already allowed directly onprocess
, so if it is specified twice (onprocess
and in--options
) then maybe we should raise an error. For convenience, we may also want to include-n
directly onprocess
(and similarly raise an error if it's specified twice).The text was updated successfully, but these errors were encountered: