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

Generic Main should fail fast on converting options to enums. #18

Closed
fozziethebeat opened this issue Jul 26, 2012 · 3 comments
Closed
Assignees

Comments

@fozziethebeat
Copy link
Owner

Running

java -Xmx2g -cp target/sspace-2.0.3-jar-with-dependencies.jar edu.ucla.sspace.mains.LSAMain -d test.doc -o dense_text .

processes the corpus using SVD and then attempts to convert the value of -o (dense_text) to a edu.ucla.sspace.common.SemanticSpaceIO.SSpaceFormat enum after the processing only to fail, since it's an incorrect value. This should fail before any processing to save time and computational resources.

@ghost ghost assigned fozziethebeat Jul 26, 2012
@davidjurgens
Copy link
Collaborator

Is this just missing the toUpperCase() to match the enum's .valueOf()
casing?

On Thu, Jul 26, 2012 at 1:36 AM, Keith Stevens <
reply@reply.github.com

wrote:

Running

java -Xmx2g -cp target/sspace-2.0.3-jar-with-dependencies.jar

edu.ucla.sspace.mains.LSAMain -d test.doc -o dense_text .

processes the corpus using SVD and then attempts to convert the value of
-o (dense_text) to a edu.ucla.sspace.common.SemanticSpaceIO.SSpaceFormat
enum after the processing only to fail, since it's an incorrect value.
This should fail before any processing to save time and computational
resources.


Reply to this email directly or view it on GitHub:
#18

@fozziethebeat
Copy link
Owner Author

Nope, DENSE_TEXT isn't a valid option, TEXT is. Either way, it should fail fast.

@fozziethebeat
Copy link
Owner Author

Commit bcd5b9f fixes this issue.

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