read

Collocations.read(*args, **kwargs)[source]

Read a file and apply a collapse / expand function to it

Does the same as read() from the base class FileSet, but can collapse or expand collocations after reading them.

Parameters:
  • *args – Positional arguments for read().

  • **kwargs – Keyword arguments for read().

Returns:

The same as read(), but with data that is either collapsed or expanded.