sam-arts / respol_patents_code

https://github.com/jcgcarranza/respol_patents_code
MIT License
29 stars 9 forks source link

Error while during execution of backward_cosine/step_04_cosine_similarity_five_years.py #2

Open gauravmolugu opened 1 year ago

gauravmolugu commented 1 year ago

Dear Sam, Jianan and Juan Carlos, First of all, congratulations on the publication & thank you very much for making the code and data publicly available! With regard to my question: I am running into the following error while running the script backward_cosine/step_04_cosine_similarity_five_years.py.

FileNotFoundError: [Errno 2] No such file or directory: 'E:/data/2020_research_policy_replicate_results/backward_cosine/keywords_all_idx.txt'.

While debugging the error, I presumed that step_03 produces the keywords_all_idx.txt file. However, step_03 refers to the new_word/step_03_index_patents.py, which only outputs the keywords_idx.txt file. Could you kindly provide information as to what file should be used to run the above-mentioned script?

Thanks, Gaurav.

sam-arts commented 1 year ago

Dear Gaurav,

Please see the reply from my co-author below. Let me know if this does not solve your issue!

Kind regards, Sam

Hi Sam,

Sorry for the delay.

I think the user is mixing the codes. In the folder:

backward_cosine/

There must be a file: backward_cosine/step_03_index_patents.py

To create the mentioned file: backward_cosine/keywords_all_idx.txt

I think he is using the code located at: new_word/step_03_index_patents.py

and this code create a different file (new_word/keywords_idx.txt) needed for that specific metric (new_word)

Hope it makes sense.

Best,

Juan Carlos


Van: gauravmolugu @.> Verzonden: zaterdag 7 januari 2023 14:11 Aan: sam-arts/respol_patents_code @.> CC: Subscribed @.***> Onderwerp: [sam-arts/respol_patents_code] Error while during execution of backward_cosine/step_04_cosine_similarity_five_years.py (Issue #2)

Dear Sam, Jianan and Juan Carlos, First of all, congratulations on the publication & thank you very much for making the code and data publicly available! With regard to my question: I am running into the following error while running the script backward_cosine/step_04_cosine_similarity_five_years.py.

FileNotFoundError: [Errno 2] No such file or directory: 'E:/data/2020_research_policy_replicate_results/backward_cosine/keywords_all_idx.txt'.

While debugging the error, I presumed that step_03 produces the keywords_all_idx.txt file. However, step_03 refers to the new_word/step_03_index_patents.py, which only outputs the keywords_idx.txt file. Could you kindly provide information as to what file should be used to run the above-mentioned script?

Thanks, Gaurav.

— Reply to this email directly, view it on GitHubhttps://github.com/sam-arts/respol_patents_code/issues/2, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQQAJDZO6ZIKWZYTAEAQUNDWRF2S5ANCNFSM6AAAAAATT7ACHU. You are receiving this because you are subscribed to this thread.Message ID: @.***>