1
我想從維基,
我嘗試了一些Index of /enwiktionary/latest/語料庫下載所有的數可數名詞(Category:English countable nouns),但看起來很難提取我想要的類別。任何人都可以告訴我應該使用哪一個以及如何提取特定類別的單詞列表?或者有沒有其他方法可以這樣做,比如使用API?如何從Wiktionary下載單詞類別?
我想從維基,
我嘗試了一些Index of /enwiktionary/latest/語料庫下載所有的數可數名詞(Category:English countable nouns),但看起來很難提取我想要的類別。任何人都可以告訴我應該使用哪一個以及如何提取特定類別的單詞列表?或者有沒有其他方法可以這樣做,比如使用API?如何從Wiktionary下載單詞類別?
categorymembers API。 https://en.wiktionary.org/w/api.php?action=query&list=categorymembers&cmtitle=Category:English_countable_nouns&cmprop=title給出:
{
"warnings": {
"query": {
"*": "Formatting of continuation data will be changing soon. To continue using the current formatting, use the 'rawcontinue' parameter. To begin using the new format, pass an empty string for 'continue' in the initial query."
}
},
"query-continue": {
"categorymembers": {
"cmcontinue": "page|302d342d30|474610"
}
},
"query": {
"categorymembers": [
{
"ns": 0,
"title": "$100 hamburger"
},
{
"ns": 0,
"title": "%ile"
},
{
"ns": 0,
"title": "&lit"
},
{
"ns": 0,
"title": ".com"
},
{
"ns": 0,
"title": "/b/tard"
},
{
"ns": 0,
"title": "0"
},
{
"ns": 0,
"title": "0-10-0"
},
{
"ns": 0,
"title": "0-10-2"
},
{
"ns": 0,
"title": "0-12-0"
},
{
"ns": 0,
"title": "0-2-2"
}
]
}
}