Termset API and implementation details
masterThe termset module provides functionality for managing negation patterns. Note the following technical details:
- Class Naming: The class is named
termset(lowercase). While this deviates from PEP 8, it is preserved for backward compatibility. Users should treat it as a standard class. - Pattern Management: The API includes methods for
add_patternsandremove_patternsto manage the underlying termsets. - Error Handling: Attempting to use an invalid
neg_termsetwill raise aKeyError.