Skip to main content

module aixplain.modules.corpus


class Corpus

method __init__

__init__(
id: str,
name: str,
description: str,
data: List[Data],
onboard_status: OnboardStatus,
functions: List[Function] = [],
tags: List[str] = [],
license: Optional[License] = None,
privacy: Privacy = <Privacy.PRIVATE: 'Private'>,
supplier: str = 'aiXplain',
version: str = '1.0',
length: Optional[int] = None,
**kwargs
)None

Corpus Class.

Description: Corpus is general-purpose collection of data that can be processed and used to create task-specific datasets.

Args:

  • id (Text): Corpus ID
  • name (Text): Corpus Name
  • description (Text): description of the corpus
  • data (List[Data]): List of data which the corpus consists of
  • onboard_status (OnboardStatus): onboard status
  • functions (List[Function], optional): AI functions in which the corpus is suggested to be used to. Defaults to [].
  • tags (List[Text], optional): description tags. Defaults to [].
  • license (Optional[License], optional): Corpus license. Defaults to None.
  • privacy (Privacy, optional): Corpus privacy info. Defaults to Privacy.PRIVATE.
  • supplier (Text, optional): Corpus supplier. Defaults to "aiXplain".
  • version (Text, optional): Corpus version. Defaults to "1.0".
  • length (Optional[int], optional): Number of rows in the Corpus. Defaults to None.

method delete

delete()None

Delete Corpus service