diff --git a/examples/Sort_Google_Scholar_No_Code_Version.ipynb b/examples/Sort_Google_Scholar_No_Code_Version.ipynb index c098247..8ac1f23 100644 --- a/examples/Sort_Google_Scholar_No_Code_Version.ipynb +++ b/examples/Sort_Google_Scholar_No_Code_Version.ipynb @@ -19,7 +19,7 @@ "colab_type": "text" }, "source": [ - "" + "" ] }, { @@ -39,13 +39,13 @@ { "cell_type": "code", "source": [ - "search_query = \"large language models\" # @param {type:\"string\"}" + "search_query = \"machine learning\" # @param {type:\"string\"}" ], "metadata": { "cellView": "form", "id": "xlpCibrIV4Nk" }, - "execution_count": null, + "execution_count": 1, "outputs": [] }, { @@ -83,6 +83,13 @@ "nresults = 100 # @param {type:\"number\"}\n", "startyear = None # @param {type:\"string\"}\n", "endyear = None # @param {type:\"string\"}\n", + "langfilter = None # @param [\"None\", \"zh-CN\", \"zh-TW\", \"nl\", \"en\", \"fr\", \"de\", \"it\", \"ja\", \"ko\", \"pl\", \"pt\", \"es\", \"tr\"] {type:\"string\"}\n", + "\n", + "# Convert the langfilter to a list if it's not None\n", + "if langfilter and langfilter != \"None\":\n", + " langfilter = [langfilter]\n", + "else:\n", + " langfilter = None # No language filter applied if \"None\" is selected\n", "\n", "# Constructing the base command\n", "cmd = f\"sortgs '{search_query}' --sortby '{sortby}' --nresults {nresults}\"\n", @@ -93,14 +100,31 @@ "if endyear:\n", " cmd += f\" --endyear {endyear}\"\n", "\n", - "\n" + "if langfilter:\n", + " lang_str = ' '.join(langfilter)\n", + " cmd += f\" --langfilter {lang_str}\"\n", + "\n", + "# Output the constructed command for review\n", + "print(\"Constructed command:\", cmd)\n" ], "metadata": { "cellView": "form", - "id": "VbVaoz3wYGQY" + "id": "VbVaoz3wYGQY", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "9de8ff16-0bd0-468e-a28d-20f0dbc5973b" }, - "execution_count": null, - "outputs": [] + "execution_count": 2, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "Constructed command: sortgs 'machine learning' --sortby 'cit/year' --nresults 100\n" + ] + } + ] }, { "cell_type": "markdown", @@ -115,14 +139,29 @@ "cell_type": "code", "metadata": { "id": "oPot8aWcsfei", - "cellView": "form" + "cellView": "form", + "colab": { + "base_uri": "https://localhost:8080/" + }, + "outputId": "6c37c6ae-fcba-4a55-9759-997ed004f991" }, "source": [ "# @title\n", "!pip install sortgs --quiet" ], - "execution_count": null, - "outputs": [] + "execution_count": 3, + "outputs": [ + { + "output_type": "stream", + "name": "stdout", + "text": [ + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m9.7/9.7 MB\u001b[0m \u001b[31m40.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m476.0/476.0 kB\u001b[0m \u001b[31m8.3 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m58.3/58.3 kB\u001b[0m \u001b[31m2.5 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n", + "\u001b[?25h" + ] + } + ] }, { "cell_type": "code", @@ -136,16 +175,16 @@ }, "cellView": "form", "id": "qgfQT7i2XrPf", - "outputId": "a3ea8b37-154f-420e-95df-72471e0a53c0" + "outputId": "c9adeaee-74b3-4b8d-fbd7-6127d9e5f229" }, - "execution_count": null, + "execution_count": 4, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "Running with the following parameters:\n", - "Keyword: large language models, Number of results: 100, Save database: True, Path: /content, Sort by: cit/year, Plot results: False, Start year: None, End year: 2024, Debug: False\n", + "Keyword: machine learning, Number of results: 100, Save database: True, Path: /content, Sort by: cit/year, Plot results: False, Start year: None, End year: 2024, Debug: False\n", "Loading next 10 results\n", "Loading next 20 results\n", "Loading next 30 results\n", @@ -156,22 +195,22 @@ "Loading next 80 results\n", "Loading next 90 results\n", "Loading next 100 results\n", - " Author ... cit/year\n", - "Rank ... \n", - "57 Wei, X Wang, D Schuurmans… ... 2406\n", - "80 Hu, Y Shen, P Wallis, Z Alle ... 1652\n", - "1 Kasneci, K Seßler, S Küchemann, M Bannert… ... 1390\n", - "78 Yao, D Yu, J Zhao, I Shafran… ... 1304\n", - "3 Chang, X Wang, J Wang, Y Wu, L Yang… ... 1198\n", - "... ... ... ...\n", - "84 Maatouk, N Piovesan, F Ayed… ... 29\n", - "45 Li, L Xia, J Tang, Y Xu, L Shi, L Xia, D Yin… ... 23\n", - "82 Cheng, S Huang, F Wei ... 22\n", - "50 Zhu, Q Zhao, H Chen, J Wang, X Xie ... 14\n", - "73 Ren, J Tang, D Yin, N Chawla, C Huang ... 6\n", + " Author ... cit/year\n", + "Rank ... \n", + "93 Bishop, NM Nasrabadi ... 3911\n", + "22 Alpaydin ... 2936\n", + "19 Mitchell, TM Mitchell ... 1404\n", + "30 Murphy ... 1273\n", + "3 Jordan, TM Mitchell ... 958\n", + "... ... ... ...\n", + "59 Singh, PK Bhatia, O Sangwan ... 10\n", + "7 Dietterich ... 7\n", + "35 Kubat, I Bratko, RS Michalski ... 5\n", + "44 Carbonell, RS Michalski, TM Mitchell ... 4\n", + "52 Burkov ... 1\n", "\n", "[100 rows x 8 columns]\n", - "Results saved to /content/large_language_models.csv\n" + "Results saved to /content/machine_learning.csv\n" ] } ] @@ -222,9 +261,9 @@ "id": "pM_Bb4MH14eI", "colab": { "base_uri": "https://localhost:8080/", - "height": 2951 + "height": 563 }, - "outputId": "8cb7847d-28b4-47cd-ad16-21f20e72b745", + "outputId": "b3eaf306-feb9-4306-e32f-726e5808c640", "cellView": "form" }, "source": [ @@ -233,69 +272,69 @@ "results = pd.read_csv(search_query.replace(' ', '_')+'.csv')\n", "results" ], - "execution_count": null, + "execution_count": 5, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ - " Rank Author \\\n", - "0 57 Wei, X Wang, D Schuurmans… \n", - "1 80 Hu, Y Shen, P Wallis, Z Alle \n", - "2 1 Kasneci, K Seßler, S Küchemann, M Bannert… \n", - "3 78 Yao, D Yu, J Zhao, I Shafran… \n", - "4 3 Chang, X Wang, J Wang, Y Wu, L Yang… \n", - ".. ... ... \n", - "95 84 Maatouk, N Piovesan, F Ayed… \n", - "96 45 Li, L Xia, J Tang, Y Xu, L Shi, L Xia, D Yin… \n", - "97 82 Cheng, S Huang, F Wei \n", - "98 50 Zhu, Q Zhao, H Chen, J Wang, X Xie \n", - "99 73 Ren, J Tang, D Yin, N Chawla, C Huang \n", + " Rank Author \\\n", + "0 93 Bishop, NM Nasrabadi \n", + "1 22 Alpaydin \n", + "2 19 Mitchell, TM Mitchell \n", + "3 30 Murphy \n", + "4 3 Jordan, TM Mitchell \n", + ".. ... ... \n", + "95 59 Singh, PK Bhatia, O Sangwan \n", + "96 7 Dietterich \n", + "97 35 Kubat, I Bratko, RS Michalski \n", + "98 44 Carbonell, RS Michalski, TM Mitchell \n", + "99 52 Burkov \n", "\n", " Title Citations Year \\\n", - "0 Chain-of-thought prompting elicits reasoning i... 7219 2022 \n", - "1 Lora: Low-rank adaptation of large language mo... 6608 2021 \n", - "2 ChatGPT for good? On opportunities and challen... 2779 2023 \n", - "3 Tree of thoughts: Deliberate problem solving w... 1304 2024 \n", - "4 A survey on evaluation of large language models 1198 2024 \n", + "0 Pattern recognition and machine learning 74300 2006 \n", + "1 Introduction to machine learning 14680 2020 \n", + "2 Machine learning 39313 1997 \n", + "3 Machine learning: a probabilistic perspective 16548 2012 \n", + "4 Machine learning: Trends, perspectives, and pr... 9579 2015 \n", ".. ... ... ... \n", - "95 Large language models for telecom: Forthcoming... 29 2024 \n", - "96 Urbangpt: Spatio-temporal large language models 23 2024 \n", - "97 Adapting large language models via reading com... 44 2023 \n", - "98 Promptbench: A unified library for evaluation ... 14 2024 \n", - "99 A survey of large language models for graphs 6 2024 \n", - "\n", - " Publisher Venue \\\n", - "0 proceedings.neurips.cc Advances in neural … \n", - "1 arxiv.org arXiv preprint arXiv … \n", - "2 Elsevier Learning and individual … \n", - "3 proceedings.neurips.cc Advances in … \n", - "4 dl.acm.org ACM Transactions on … \n", - ".. ... ... \n", - "95 ieeexplore.ieee.org IEEE … \n", - "96 dl.acm.org Proceedings of the 30th … \n", - "97 openreview.net The Twelfth International Conference on … \n", - "98 jmlr.org Journal of Machine Learning … \n", - "99 dl.acm.org Proceedings of the 30th … \n", + "95 A review of studies on machine learning techni... 180 2007 \n", + "96 Machine learning 260 1990 \n", + "97 A review of machine learning methods 123 1998 \n", + "98 Machine learning: A historical and methodologi... 149 1983 \n", + "99 The hundred-page machine learning book 1085 0 \n", + "\n", + " Publisher Venue \\\n", + "0 Springer NaN \n", + "1 books.google.com NaN \n", + "2 pachecoj.com NaN \n", + "3 books.google.com NaN \n", + "4 science.org Science \n", + ".. ... ... \n", + "95 books.google.com International Journal of … \n", + "96 Citeseer Annual review of computer science \n", + "97 Citeseer Machine learning and data mining … \n", + "98 ojs.aaai.org AI Magazine \n", + "99 papers.com NaN \n", "\n", " Source cit/year \n", - "0 https://proceedings.neurips.cc/paper_files/pap... 2406 \n", - "1 https://arxiv.org/abs/2106.09685 1652 \n", - "2 https://www.sciencedirect.com/science/article/... 1390 \n", - "3 https://proceedings.neurips.cc/paper_files/pap... 1304 \n", - "4 https://dl.acm.org/doi/abs/10.1145/3641289 1198 \n", + "0 https://link.springer.com/book/9780387310732 3911 \n", + "1 https://books.google.com/books?hl=en&lr=&id=tZ... 2936 \n", + "2 http://www.pachecoj.com/courses/csc380_fall21/... 1404 \n", + "3 https://books.google.com/books?hl=en&lr=&id=RC... 1273 \n", + "4 https://www.science.org/doi/abs/10.1126/scienc... 958 \n", ".. ... ... \n", - "95 https://ieeexplore.ieee.org/abstract/document/... 29 \n", - "96 https://dl.acm.org/doi/abs/10.1145/3637528.367... 23 \n", - "97 https://openreview.net/forum?id=y886UXPEZ0 22 \n", - "98 https://www.jmlr.org/papers/v25/24-0023.html 14 \n", - "99 https://dl.acm.org/doi/abs/10.1145/3637528.367... 6 \n", + "95 https://books.google.com/books?hl=en&lr=&id=7x... 10 \n", + "96 https://citeseerx.ist.psu.edu/document?repid=r... 7 \n", + "97 https://citeseerx.ist.psu.edu/document?repid=r... 5 \n", + "98 https://ojs.aaai.org/aimagazine/index.php/aima... 4 \n", + "99 https://order-papers.com/sites/default/files/t... 1 \n", "\n", "[100 rows x 9 columns]" ], "text/html": [ "\n", - "