Hi Ali, Thanks for reporting this, and I can confirm your observation, the program does indeed hang when one of the input terms is unknown to UMLS. We will take a look at this and report back via the mailing list.
Cordially, Ted --- In [email protected], "ShopingPrincess99785" <ali.hasnain@...> wrote: > > Hello, > > I am using the UMLS Perl implementation from the command line to find the > relatedness of two concepts. > So it is noticed that it gives some score when I try to find the relatedness > for two concepts that are defined in UMLS example is as follow: > > When I give the command "query-umls-similarity-webinterface.pl --measure > vector drug molecule" it gives the score value: 0.4835 . > Similarly it computes the values of all other concepts available in UMLS but > the problem arrives when one of the two concept is asked that is not defined > in UMLS, rather it should give value of 0 meaning there is no relatedness the > command line become hanged and stops and waited for unlimited time giving no > value or even no error. > > Example is When I give the command "query-umls-similarity-webinterface.pl > --measure vector drug ABCD", so the concept ABCD is nothing defined in UMLS, > it should give me some error or some numeric value e.g "0" showing no > relatedness. > > Actually I am much relying on the numeric value that comes as an output for > the relatedness and what I want is that it should give some value > irrespective of what word has been asked. If that word is not available in > the UMLS it should give me "0" or at least it should stop and give some > message that this word is not available and computes the values for next pair > when I give the words in a LOOP. > > > As I am new to PERL, can you please guide me where should I make changes in > the PERL code file of ""query-umls-similarity-webinterface.pl"" (that comes > with the package) so it gives the value of "0" rather than the program hangs > and go further. > > > I consider this as a limitation or an error so please send me as an > attachment the edited version of the code file of > ""query-umls-similarity-webinterface.pl"" or any other that I can replaced > with the existing files so I can continue computing relatedness irrespective > of the fact weather any of the concept available in the UMLS or not. > > Looking forward for your timely response. > > Best Regards, > Ali Hasnain >
