From 7b56d3f8c470b5732cb9cc3fab11cb623bcc3125 Mon Sep 17 00:00:00 2001 From: luxin Date: Mon, 7 Nov 2022 17:05:40 +0800 Subject: [PATCH] opt keywords_must --- .../config.json" | 4 +- .../config.json" | 12 +- data/tree.json | 442 ++++++++++++------ 3 files changed, 296 insertions(+), 162 deletions(-) diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/config.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/config.json" index c312621..f3722b0 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/config.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.Python\347\256\200\344\273\213/config.json" @@ -34,7 +34,9 @@ ], "node_id": "python-3-0", "keywords_must": [ - "python" + ["python", "简介"], + ["python", "介绍"], + ["python", "概述"] ], "keywords_forbid": [] } \ No newline at end of file diff --git "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/config.json" "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/config.json" index 225acd6..d7cd3f3 100644 --- "a/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/config.json" +++ "b/data/1.python\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/3.\345\256\211\350\243\205Python/config.json" @@ -9,7 +9,7 @@ "keywords": ["Windows"], "children": [], "node_id": "python-4-1", - "keywords_must": [], + "keywords_must": [["python", "安装", "windows"]], "keywords_forbid": [] } }, @@ -18,7 +18,7 @@ "keywords": ["Linux"], "children": [], "node_id": "python-4-2", - "keywords_must": [], + "keywords_must": [["python", "安装", "linux"]], "keywords_forbid": [] } }, @@ -27,18 +27,14 @@ "keywords": ["MacOS"], "children": [], "node_id": "python-4-3", - "keywords_must": [], + "keywords_must": [["python", "安装", "mac"]], "keywords_forbid": [] } } ], "node_id": "python-3-2", "keywords_must": [ - ["python", "安装", "windows"], - ["python", "安装", "mac"], - ["python", "安装", "linux"], - ["python", "安装", "ubuntu"], - ["python", "安装", "debian"] + ["python", "环境", "安装"] ], "keywords_forbid": [] } \ No newline at end of file diff --git a/data/tree.json b/data/tree.json index 7fff11d..4614758 100644 --- a/data/tree.json +++ b/data/tree.json @@ -49,10 +49,22 @@ } ], "keywords_must": [ - "python" + [ + "python", + "简介" + ], + [ + "python", + "介绍" + ], + [ + "python", + "概述" + ] ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -66,7 +78,8 @@ "python" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -83,7 +96,13 @@ ], "children": [], "node_id": "python-4-1", - "keywords_must": [], + "keywords_must": [ + [ + "python", + "安装", + "windows" + ] + ], "keywords_forbid": [] } }, @@ -94,7 +113,13 @@ ], "children": [], "node_id": "python-4-2", - "keywords_must": [], + "keywords_must": [ + [ + "python", + "安装", + "linux" + ] + ], "keywords_forbid": [] } }, @@ -105,7 +130,13 @@ ], "children": [], "node_id": "python-4-3", - "keywords_must": [], + "keywords_must": [ + [ + "python", + "安装", + "mac" + ] + ], "keywords_forbid": [] } } @@ -113,32 +144,13 @@ "keywords_must": [ [ "python", - "安装", - "windows" - ], - [ - "python", - "安装", - "mac" - ], - [ - "python", - "安装", - "linux" - ], - [ - "python", - "安装", - "ubuntu" - ], - [ - "python", - "安装", - "debian" + "环境", + "安装" ] ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -169,7 +181,8 @@ "python" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -200,7 +213,8 @@ "python" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -213,7 +227,8 @@ "PEP8" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -233,13 +248,15 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } }, { @@ -264,7 +281,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -394,7 +412,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -478,7 +497,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -538,7 +558,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -553,7 +574,8 @@ "顺序控制语句" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -582,7 +604,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -638,7 +661,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -814,7 +838,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1228,7 +1253,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1284,13 +1310,15 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } }, { @@ -1305,7 +1333,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1317,7 +1346,8 @@ "三元表达式" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1327,7 +1357,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1337,7 +1368,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1366,7 +1398,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1497,7 +1530,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1517,7 +1551,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1638,7 +1673,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1713,7 +1749,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1733,13 +1770,15 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } }, { @@ -1754,7 +1793,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1764,7 +1804,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1830,7 +1871,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1840,7 +1882,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1850,7 +1893,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1860,7 +1904,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1870,19 +1915,22 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1902,7 +1950,8 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1931,7 +1980,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -1958,7 +2008,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2052,7 +2103,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2072,7 +2124,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2092,7 +2145,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2217,7 +2271,8 @@ "Socket" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2237,13 +2292,15 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } }, { @@ -2277,7 +2334,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2335,7 +2393,8 @@ "django" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2393,7 +2452,8 @@ "tornado" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2442,13 +2502,15 @@ "flask" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } }, { @@ -2493,7 +2555,8 @@ "urllib" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2531,7 +2594,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2578,7 +2642,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2636,7 +2701,8 @@ "lxml" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2694,7 +2760,8 @@ "requests" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2750,7 +2817,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2808,7 +2876,8 @@ "scrapy" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2846,7 +2915,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2866,7 +2936,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2886,7 +2957,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2915,7 +2987,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2927,7 +3000,8 @@ "autoscraper" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2939,7 +3013,8 @@ "selectolax" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -2951,13 +3026,15 @@ "requests-html" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } }, { @@ -3003,7 +3080,8 @@ "tk" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3061,7 +3139,8 @@ "pyqt" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3120,13 +3199,15 @@ "wx" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } }, { @@ -3141,19 +3222,22 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 1 + "group": 1, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3222,7 +3306,8 @@ "np" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3235,7 +3320,8 @@ "np" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3248,7 +3334,8 @@ "np" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3307,7 +3394,8 @@ "np" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3366,7 +3454,8 @@ "np" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3398,7 +3487,8 @@ "np" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3439,7 +3529,8 @@ "np" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3489,13 +3580,15 @@ "np" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 2 + "group": 2, + "subtree": "" } }, { @@ -3523,7 +3616,8 @@ "pd" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3564,7 +3658,8 @@ "pd" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3623,7 +3718,8 @@ "pd" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3682,13 +3778,15 @@ "pd" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 2 + "group": 2, + "subtree": "" } }, { @@ -3706,7 +3804,8 @@ "matplot" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3765,7 +3864,8 @@ "matplot" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3824,7 +3924,8 @@ "matplot" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3874,13 +3975,15 @@ "matplot" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 2 + "group": 2, + "subtree": "" } }, { @@ -3897,7 +4000,8 @@ "scipy" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3909,7 +4013,8 @@ "scipy" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3949,7 +4054,8 @@ "scipy" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -3989,7 +4095,8 @@ "scipy" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4029,7 +4136,8 @@ "scipy" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4078,7 +4186,8 @@ "scipy" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4116,7 +4225,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4145,7 +4255,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4201,7 +4312,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4230,7 +4342,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4259,13 +4372,15 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 2 + "group": 2, + "subtree": "" } }, { @@ -4375,7 +4490,8 @@ "csv" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4499,7 +4615,8 @@ "excel" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -4602,13 +4719,15 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 2 + "group": 2, + "subtree": "" } }, { @@ -4963,7 +5082,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -5501,7 +5621,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -5635,7 +5756,8 @@ "computer vision" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -5952,7 +6074,8 @@ "natural language processing" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -6029,7 +6152,8 @@ "keywords_forbid": [ "无监督" ], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -6122,13 +6246,15 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 2 + "group": 2, + "subtree": "" } }, { @@ -6309,7 +6435,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -6459,7 +6586,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -6506,7 +6634,8 @@ ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -6519,7 +6648,8 @@ "模式匹配" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } }, { @@ -6533,13 +6663,15 @@ "code object" ], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 2 + "group": 2, + "subtree": "" } }, { @@ -6554,24 +6686,28 @@ "children": [], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 2 + "group": 2, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } ], "keywords_must": [], "keywords_forbid": [], - "group": 0 + "group": 0, + "subtree": "" } } \ No newline at end of file -- GitLab