Identifies keywords, key n-grams, key collocations and terms.
Changed onKeywords, key n-grams, key collocations and terms are identified by comparing the focus corpus (or a subcorpus) to a refrence corpus (or a subcorpus). It is the equivalent of using the Keywords and terms tool or using the key option in n-grams or the word sketch.
Request
- The document declares no server URL.
- Auth: HTTP basic
Query parameters
Corpus name. To query your own corpus (e.g. username john, corpus mycorpus), use value user/john/mycorpus.
Corpus name of the reference corpus, it must have the same processing (the same attributes, the same term grammar).
The name of the subcorpus. The default value empty string refers to the entire corpus. An example for preloaded/bnc2_tt21 can be Written Academic or 1960-1974.
The smoothing parameter for (simple maths) [https://www.sketchengine.eu/documentation/simple-maths/].
Defines the allow list (formerly known as whitelist), the list of words which should be included in the list. See also wlblacklist.
A deny list (formerly known as blacklist) is a list of items that should be excluded from the result. The values should be be separated by a newline symbol (without commas between values). In the URL, the newline symbol is %0A.
Switches between the computation of keywords, terms, key n-grams and key collocations. With keywords and n-grams, it also sets the attribute to be used for the computation.
For keywords, set to the required attribute, usually lc, word or lemma.
For n-grams, set to the required attribute and set usengrams, ngrams_n and ngrams_max_n.
For terms, set the attribute to TERM.
For collocations (word sketch triples, equivalent of using the Word Sketch with AS A LIST option in the web interace), set the attribute to WSCOLLOC. Consider using wlpat.
Limits the results to items containing only alphanumeric characters.
Limits the results to items containing at least one alphanumberic character. Words such as 16-year-old or 3D will be included.
Sets the minimum frequency of the item.
Sets the maximum frequency of the item.
The number of items to be returned in the response.
Includes, or excludes, nonwords in the in the result. Nonwords are tokens which do not start with letter of the alphabet (e.g. numbers, punctuation). The regex to match the nonwords is [^[:alpha:]].*. Certain specialized corpora may use their own specific definition of nonwords.
Switches to the lc attribute, i.e. the lower-cased version of the corpus to allow case insensitive searching. 1 means that case sensitivity is off, 0 means it is on.
Sets a regex to filter the results. Relevant only in a simple wordlist.
Represent what kind of frequnecy should be calculated. When used with reldocf it is set to docf to calculate document frequency.
Calculate the document frequency for each item in the result. Must be used with addfreqs set to docf.
Represent if n-grams should be extracted or just simple keywords.
The minimum n-gram length. Usually used with ngrams_max_n and usengrams.
The maximum n-gram length. The maximum is 6.
The format of the output. Empty value is interpreted as JSON. Not every endpoint supports all formats.
Response
OK
Example response
{
"keywords": [
{
"item": "galský",
"score": 2411.16,
"frq1": 2,
"frq2": 512,
"rel_frq1": 4291.8457,
"rel_frq2": 0.78041,
"query": "[lemma=\\\"galský\\\"]"
}
],
"referece_corpus_name": "Slovak Web 2011 (skTenTen11)",
"reference_corpus_size": 656067998,
"reference_subcorpus_size": 656067998,
"subcorpus_size": 466,
"corpus_size": 466,
"total": 175,
"totalfrq1": 466,
"totalfrq2": 250525622,
"wllimit": 1000,
"api_version": "5.63.1",
"manatee_version": "2.36.7-SkE-2.221",
"request": {
"alnum": "1",
"maxfreq": "0",
"minfreq": "1",
"wlpat": ".*",
"attr": "lemma",
"keywords": "1",
"ref_corpname": "preloaded/sktenten11_rft1",
"simple_n": "1",
"k_attr": "lemma",
"include_nonwords": "0",
"reldocf": ":\"0\"",
"icase": "1",
"onealpha": "1",
"max_keywords": "1000",
"corpname": "user/matuskostka1/aaaaa_slovak"
}
}Changes
- breaking
the
queryrequest parameteralnumwas restricted to a list of enum values - breaking
the
queryrequest parametersimple_nwas restricted to a list of enum values - breaking
for the
queryrequest parameteralnum, default value was changed from0to1 - breaking
for the
queryrequest parametersimple_n, default value was changed from1to1 - warning
deleted the
queryrequest parameterk_attr - warning
deleted the
queryrequest parameterkeywords - warning
deleted the
queryrequest parameteroneaplha - warning
deleted the
queryrequest parameterterms - info
added the new optional
queryrequest parameteraddfreqs - info
added the new optional
queryrequest parameterngrams_max_n - info
added the new optional
queryrequest parameteronealpha - info
added the new optional
queryrequest parameterusengrams - info
added the new enum value
0.00to thequeryrequest parameteralnum - info
added the new enum value
0to thequeryrequest parametersimple_n - info
added the new enum value
1.00to thequeryrequest parameteralnum - info
added the new enum value
1to thequeryrequest parametersimple_n - info
added the new enum value
WSCOLLOCto thequeryrequest parameterattr - info
for the
queryrequest parametersimple_n, the type was generalized fromintegertostring
- breaking