lexnlp.extract.en.copyright: Extracting copyright references¶

The lexnlp.extract.en.copyright module contains methods that allow for the extraction of copyright references from text.

The full list of current unit test cases can be found here: https://github.com/LexPredict/lexpredict-lexnlp/tree/master/test_data/lexnlp/extract/en/tests/test_copyright

Extracting copyrights¶

lexnlp.extract.en.copyright.get_copyright(text: str, return_sources=False) → Generator¶

Example

>>> import lexnlp.extract.en.copyright
>>> text = "(C) Copyright 1993-1996 Hughes Information Systems Company"
>>> print(list(lexnlp.extract.en.copyright.get_copyright(text)))
[('Copyright', '1993-1996', 'Hughes Information Systems Company')]

>>> text = "Test copyrigh symbol © 2017, SIGN LLC"
>>> print(list(lexnlp.extract.en.conditions.get_conditions(text)))
print(list(lexnlp.extract.en.copyright.get_copyright(text)))
[('©', '2017', 'SIGN LLC')]

LexNLP

Navigation

  • About LexNLP
  • LexNLP package
  • Changelog
  • License

Related Topics

  • Documentation overview

Quick search

©2015-2020, ContraxSuite, LLC. | Powered by Sphinx 2.1.2 & Alabaster 0.7.12 | Page source