corpkit: New interrogation options
Description
This release is designed to reflect a change from purpose-built interrogator() functions to the search and show arguments, which are much more powerful. Users can construct a dict object with one or more dependency criteria to match, and elect to match all criteria or any criterion with searchmode = 'any'/'all'.
might return:
Passing in a longer list for the show argument will set what is given in the output, as well as its order:
will produce column names with concatenated function, pos and lemma:
Another improvement is the exclude argument, which takes the place of blacklist, function_filter and pos_filter. Alongside excludemode = 'any'/'all', it operates just like search, allowing the user to exclude results matching one or more criteria:
would remove any verbal token ending in ing. Changing excludemode to 'any' would remove all verbs and all words ending in ing.
The release has various other bugfixes, code cleanup, and some miscellaneous bits and pieces, such as a function for turning results into Pandas Multi Index DataFrames. Full API documentation is forthcoming.
Files
corpkit-1.76.zip
Files
(64.1 MB)
Name | Size | Download all |
---|---|---|
md5:fad88dc6c3595a64cd6879076c761634
|
64.1 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/interrogator/corpkit/tree/1.76 (URL)