Skip to content
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

pipeline.pl should print help #238

Open
lewismc opened this issue Jan 11, 2016 · 5 comments
Open

pipeline.pl should print help #238

lewismc opened this issue Jan 11, 2016 · 5 comments

Comments

@lewismc
Copy link
Contributor

lewismc commented Jan 11, 2016

It would be very handy if pipeline.pl prints all command line options if invoked without parameters or with --help.
This issue will address that.

@mjpost
Copy link
Member

mjpost commented Jan 11, 2016

Agreed. There isn't an easy way to do this under the current setup, because of the way the pipeline handles arguments (barebones home-brewed).

This is tied to a more complex issue, which is that the pipeline needs to be rewritten entirely, more in the spirit of Moses' EMS.

@lewismc
Copy link
Contributor Author

lewismc commented Jan 11, 2016

... bugger.
I had a look at Pod::Usage which seems like it would do the trick.
pipeline.pl is pretty meaty... I am not sure that I want to embark on a rewrite based on the fact that I don't know the code too well (and the fact that it's in pl).
What's your thoughts here @mjpost ?

@mjpost
Copy link
Member

mjpost commented Jan 11, 2016

Pipeline started out as a small Perl script and, as they tend to do, grew. Beside being a huge Perl script (itself a big problem), it has a number of other issues. It would be good to start with a graph-based approach to the needs of the MT pipeline, start at the end, and work backwards. This is the way tools like Make or Moses' EMS work. Pipeline starts at the beginning each time, and tries to be smart about what steps it can skip.

This might be a situation where it's better to just work with what you've got. But I'd be happy to take a tool like EMS, get permission to Apache-2 it, and then roll it into Joshua. I'm reluctant to put too much work into Pipeline.

(I also have another option for build tools that I am looking into)

@lewismc
Copy link
Contributor Author

lewismc commented Jan 12, 2016

@mjpost I understand, this sounds like a significant undertaking.
It looks like simply printing a help message for pipeline.pl is not even a trivial undertaking.
Are you referring to this EMS?

@mjpost
Copy link
Member

mjpost commented Jan 13, 2016

Yep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants