Apache server hang when calling similarity method #11693
-
New to spaCy and wanting to match the user's utterance to a list of examples using similarity method, this runs the first time, but the server would hang the second time with another message, this is on an Apache server on a cloud platform with shared, non-dedicated resources if this info is useful. Sorry if this might not be the right place to ask.
spaCy version 3.4.2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Sorry you're having trouble with this, but with the information you've given us this is pretty hard to debug. To be clear, is "another message" input, or do you get an error message? If you get no error message, can you kill the server to get a backtrace to show where it was stuck? Or can you add logging? How many items are you iterating over here? How many items are in |
Beta Was this translation helpful? Give feedback.
Sorry you're having trouble with this, but with the information you've given us this is pretty hard to debug.
To be clear, is "another message" input, or do you get an error message? If you get no error message, can you kill the server to get a backtrace to show where it was stuck? Or can you add logging?
How many items are you iterating over here? How many items are in
intent_basic_info
and then in each of the"message"
members? Calculating similarity in a nested for loop is generally very slow, and you should use something like annoy instead.