TU-Berlin / project-mlp

a machine learning approach for processing mathematical language in scientific documents
0 stars 1 forks source link

Add a CLI #4

Closed physikerwelt closed 9 years ago

physikerwelt commented 9 years ago

For developing and testing it would be great to be able to use mlp independent of stratosphere from the commandline like

mlp subcommand filename.ext

the following subcommands would be nice

1-4 should be run if subcommand is empty

physikerwelt commented 9 years ago

@alexeygrigorev I realized that you implemented a lot of tests. How much work would it be to develop some very simple cli support? I would need that for some explorary analysis.

alexeygrigorev commented 9 years ago

There's already some CLI support, but not in the form you want. I replied in a different thread and gave an example of how yo use it, but I see that it's something different.

This one would require some re-writing of the code

alexeygrigorev commented 9 years ago

@physikerwelt, are you already doing it?

physikerwelt commented 9 years ago

I'm trying;-)

On Sun, Sep 27, 2015 at 3:11 PM, Alexey Grigorev notifications@github.com wrote:

@physikerwelt https://github.com/physikerwelt, are you already doing it?

— Reply to this email directly or view it on GitHub https://github.com/TU-Berlin/project-mlp/issues/4#issuecomment-143549315 .

alexeygrigorev commented 9 years ago

I have added basic CLI support.

Example. Suppose you want to extract relations from Linear regression. Save the wiki markup to linear_regression.txt and then do

java mlp.Main extract -in "C:/tmp/mlp/linear_regression.txt"

This should output all extracted relations to stdout. (Here's the output: http://pastebin.com/yFY0k7tk)

physikerwelt commented 9 years ago

I think what we have is "good enough"