camphr package

Package camphr provides several interfaces and utilities for other subpackages:

  • Nlp interface. Simply takes a text, and returns a doc (str -> Doc).
  • Pipe interface. Simply takes a doc, and returns a doc (Doc -> Doc).
  • Doc interface and implementations.
  • Serialization/Deserialization supports.

Typical users would implement Nlp and SerDe: a class takes a text and outputs a DocProto, and can be serialized/deserialized via to_disk and from_disk. All of the above entities are not concrete classes but interfaces that allow users to implement their own classes without inheriting anything.


camphr.doc module

camphr.nlp module

camphr.pipe module

camphr.serde module

camphr.utils module