{"metadata":{"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"name":"python","version":"3.10.13","mimetype":"text/x-python","codemirror_mode":{"name":"ipython","version":3},"pygments_lexer":"ipython3","nbconvert_exporter":"python","file_extension":".py"},"papermill":{"default_parameters":{},"duration":109.41199,"end_time":"2022-12-23T13:00:00.573990","environment_variables":{},"exception":null,"input_path":"__notebook__.ipynb","output_path":"__notebook__.ipynb","parameters":{},"start_time":"2022-12-23T12:58:11.162000","version":"2.3.4"},"kaggle":{"accelerator":"none","dataSources":[],"isInternetEnabled":true,"language":"python","sourceType":"notebook","isGpuEnabled":false}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"!rm -rf /kaggle/working/*\n!mkdir -p /kaggle/working/dependencies\n!tree /kaggle/working","metadata":{"papermill":{"duration":0.275293,"end_time":"2022-12-23T12:58:18.708237","exception":false,"start_time":"2022-12-23T12:58:18.432944","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2024-07-11T23:06:00.438448Z","iopub.execute_input":"2024-07-11T23:06:00.438864Z","iopub.status.idle":"2024-07-11T23:06:05.169894Z","shell.execute_reply.started":"2024-07-11T23:06:00.438827Z","shell.execute_reply":"2024-07-11T23:06:05.168189Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip wheel keybert pytextrank \\\n    --wheel-dir=/kaggle/working/dependencies/ \\\n    --no-cache-dir","metadata":{"papermill":{"duration":19.501117,"end_time":"2022-12-23T12:58:38.767810","exception":false,"start_time":"2022-12-23T12:58:19.266693","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2024-07-11T23:06:05.173347Z","iopub.execute_input":"2024-07-11T23:06:05.174026Z","iopub.status.idle":"2024-07-11T23:07:09.480919Z","shell.execute_reply.started":"2024-07-11T23:06:05.173968Z","shell.execute_reply":"2024-07-11T23:07:09.479345Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!pip install keybert\n\nimport os\nfrom keybert import KeyBERT\n\n_ = KeyBERT(\"all-mpnet-base-v2\")\n_ = KeyBERT(\"multi-qa-mpnet-base-dot-v1\")\n_ = KeyBERT(\"multi-qa-distilbert-cos-v1\")\n\n!tar czvf /kaggle/working/models.tar.gz ~/.cache/huggingface/","metadata":{"execution":{"iopub.status.busy":"2024-07-11T23:07:09.488907Z","iopub.execute_input":"2024-07-11T23:07:09.489306Z","iopub.status.idle":"2024-07-11T23:09:46.452552Z","shell.execute_reply.started":"2024-07-11T23:07:09.489261Z","shell.execute_reply":"2024-07-11T23:09:46.449857Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"!tree /kaggle/working/","metadata":{"papermill":{"duration":0.28675,"end_time":"2022-12-23T12:58:39.101841","exception":false,"start_time":"2022-12-23T12:58:38.815091","status":"completed"},"tags":[],"execution":{"iopub.status.busy":"2024-07-11T23:09:46.455581Z","iopub.execute_input":"2024-07-11T23:09:46.457289Z","iopub.status.idle":"2024-07-11T23:09:47.601274Z","shell.execute_reply.started":"2024-07-11T23:09:46.457210Z","shell.execute_reply":"2024-07-11T23:09:47.599441Z"},"trusted":true},"execution_count":null,"outputs":[]}]}