Allow labels for training models to use more than just capped letters, but numbers and small letters as well.
Also fixed a bug with socket shutdown in finally, rather than in try. (shutdown() can fail too)
updated client to work properly
socket shutdown moved to try rather than finally
Please use [0-9a-zA-Z] for clarity sake.
converted pattern to [0-9a-zA-Z] for clarity's sake
This does not achieve the same result that I'm aiming for. When some other piece of code invokes this and gets a resulting socket and throws an error (maybe not be related to the socket), then the error gets caught by the except clause and discarded away. The socket shutdown/close lines following "yield s" never get executed and the socket doesn't get cleaned up. This change a) defeats the purpose of this function and b) obscures any exception that should be propagated upwards.
Great. Hope you can commercialize it. As always code contributions back, here and to the Stanford NER itself, are always welcomed.
Cool. Looks much better. I was thinking about including underscore _ also, but this should do for now.
I'm going to close this thread, since there's been no updated.