-
Notifications
You must be signed in to change notification settings - Fork 3
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
Be more pythonic #9
Comments
A more suitable way will be to use subprocess library. In general, subprocess is almost always preferred over |
The point here is not to achieve any parallelization (for which subprocess would be the solution). The way |
Rishu, could you please test the current code and close this issue if SLTev can be now used both:
From the code, it looks good, but I have not succeeded with |
Matusi, this is also something you might immediately see and close. |
@obo I think that it is usable as both script and a module, but still, the title "Be more pythonic" - is not the case yet. |
@mzilinec I fully agree. Please rename the issue (or fix the call if it is very easy -- which I do not really expect). |
SLTev is not written in a nice python way. Aside from worse readability, it brings needless platform dependence.
For instance making os.system calls like this one:
SLTev/SLTev-scripts/SLTev
Line 326 in ddc77ff
is:
Make SLTev a module which can be either imported or directly called (it should contain the standard test at the end and call its "main" if it is run directly).
If people only import SLTev, they should have access to the evaluation routines, to be directly called from within the python. Avoid external tools as much as possible! (with the exception of mwerSegmenter or GIZA).
The text was updated successfully, but these errors were encountered: