Tags
Get tag statistics
Returns POS tag distribution and counts for a dataset. Includes English and Vietnamese tag names.
ProductionStagingUATLocal development
GEThttps://linguistic.ankiren.com/api/datasets/{slug}/tags
Parameters
Path Parameters
- slugstringpathRequired
URL-friendly identifier for the dataset
Responses
200 · Tag statistics for the dataset
- tags[TagStatistic]Required
List of tags sorted by count (descending)
- tagstringRequired
POS tag code
- tagNamestring
English tag name
- tagNameVistring
Vietnamese tag name
- countintegerRequired
Number of occurrences in the dataset
- totalCountintegerRequired
Total number of tokens across all tags
- datasetobjectRequired
Dataset metadata summary
- idinteger
- slugstring
- namestring
application/json
{ "tags": [ { "tag": "N", "tagName": "Noun", "tagNameVi": "Danh từ", "count": 45821 }, { "tag": "V", "tagName": "Verb", "tagNameVi": "Động từ", "count": 28934 }, { "tag": "A", "tagName": "Adjective", "tagNameVi": "Tính từ", "count": 12456 } ], "totalCount": 127500, "dataset": { "id": 1, "slug": "vlsp2013-postag", "name": "VLSP2013_POSTAG" } }
Sample Code
Đổi ngôn ngữ ở ô Language trên thanh Documentation.
cURL
curl -X GET 'https://linguistic.ankiren.com/api/datasets/vlsp2013-postag/tags' \ -H 'Authorization: Bearer <token>' \ -H 'Accept: application/json'