-
Notifications
You must be signed in to change notification settings - Fork 31
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
Warning while creating model #8
Comments
Yes, I get this too. It has no effect on the result of the yalign-align program, it is just a warning. What I do is, suppress the annoying message (something like this): However, this is just a shell trick which sends stderr to the screen unless it contains the text "DeprecationWarning". It would be nice if somebody could fix this (I have tried, but I don't really know enough about it to have succeeded), because presumably yalign will fail when the next version of |
Thanks a lot for your earnest reply. Now it got working. I wish to develop a model for other language that has word boundary. What will be the optimal number of parallel sentences we would be needing for developing the model. Is 15k parallel sentences a fair amount? |
@simontite-capita-ti to the new version of sklearn(0.18.1), DeprecationWarning comes out and yalign doesn't works now. do you have any tips |
@luoyangen In yalign/svm.py, after line 51 add the line: The whole function now looks like this: def score(self, data):
"""
The score is positive for an alignment.
"""
self._SVC_hack()
vector = self._vectorize(data)
vector = vector.reshape(1, -1)
return float(self.svm.decision_function(vector)) |
@simontite-capita-ti hi, what version do you use of sklearn for this? I have version 0.17.1 and I get the same error when training a model |
I tried to create a model using yalign-issue6-response package and I am getting the following warning.
DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and willraise ValueError in 0.17. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample
Though i got aligner.pickle and metadata is created. I am attaching the file for reference.
en-es.zip
I dunno whether I can use that or not. It would be grt If I get an earnest reply
The text was updated successfully, but these errors were encountered: