lisc.data.Term

class lisc.data.Term(label, search, inclusions, exclusions)[source]

Search term definition with inclusion & exclusion words.

Examples

Define a search term, with inclusions and exclusions:

>>> Term('brain', ['frontal', 'temporal'], ['EEG'], ['MRI'])
Term(label='brain', search=['frontal', 'temporal'], inclusions=['EEG'], exclusions=['MRI'])
Attributes
labelstr

Label for the term.

searchlist of str

Search terms.

inclusionslist of str

Inclusion words for search terms.

exclusionslist of str

Exclusion words for search terms.