poetree.Poetree
Class corresponding to entire PoeTree collection
Parameters
Parameter | Mandatory | Data type | Description |
base_url | 0 | str | API base_url. Default: 'https://versologie.cz/poetree/api/' |
method :: get_corpora
Get metadata of all available corpora. Create a new Corpus instance for each corpus, store it in a list and return it.
Returns
Data type | Description |
list | List holding instances of Corpus |
method :: metadata
Returns metadata of selected target as a list, pandas dataframe or prints out a stringified table. It may be sorted according to any metadata key.
Parameters
Parameter | Mandatory | Data type | Description |
target | 0 | str | Metadata of what to return. Values: 'corpora', 'self'. Default: 'self' |
output | 0 | str | Output format. Values: 'list', 'pandas', 'print'. Default: 'list' |
sortby | 0 | str | Subdict key according to which sort the list. Default: None |
reverse | 0 | bool | Sort in reversed (descending) order. Default False |
Returns
Data type | Description |
(list|pd.DataFrame|None) | metadata |