pycantonese.read_chat
- pycantonese.read_chat(path: str | PathLike[str], *, filter_files: str | Sequence[str] | None = None, filter_participants: str | Sequence[str] | None = None, strict: bool = True) CHAT[source]
Read Cantonese CHAT data files.
- Parameters:
path (str or os.PathLike[str]) –
A path that points to one of the following:
A local
.zipfile path.A local directory, for files under this directory recursively.
A single
.chaCHAT file.
filter_files (str or Sequence[str], optional) – Filename(s) to keep. Regular expression matching is supported. If
None, all files are included.filter_participants (str or Sequence[str], optional) – Participant code(s) to keep. Regular expression matching is supported. If
None, all participants are included.strict (bool, optional) – If
True, enforce strict parsing of the CHAT data.
- Returns: