CQi updates

This commit is contained in:
Patrick Jentsch
2020-04-06 14:53:50 +02:00
parent b78558fc03
commit 606c4dee85
3 changed files with 41 additions and 0 deletions

View File

@ -8,6 +8,18 @@ class AttributeCollection:
class Attribute:
"""
This is a class representing an attribute. Attributes denote the general
category of information. A specific occurence is identified by an Id.
Attributes:
client (CQiClient): A connected client pointing at the server that this
object is on.
corpus (Corpus): The corpus, this attribute belongs to.
name (str): The name of the Attribute.
size (int): The number of occurences of this attribute within the corpus.
"""
def __init__(self, client, corpus, name):
self.client = client
self.corpus = corpus