Skip to main content

Functions and datamodels for patent data.

Project description

Patent Models

Functions and datamodels for patent data.

``from patentmodels import PatentDoc, Description, Claimset, Claims, Classification``

Getting a bag of words from a patent description.
text = [
("Lorem ipsum dolor sit amet, consectetur "
"adipiscing elit. Integer nec odio. \n"),
("Praesent libero 100. Sed cursus 102 ante dapibus diam. "
"Sed nisi. \n"),
("Sed, dignissim lacinia, <nunc>. Curabitur tortor 2."
"Pellentesque nibh. \n"),
"Quisque volutpat 554 condimentum velit."
desc = Description(text)

['lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consecteturadipisc', 'elit',
'integ', 'nec', 'odio', 'praesent', 'libero', 'sed', 'cursu', 'ant', 'dapibu',
'nisi', 'sed', 'dignissim', 'lacinia', 'nunc', 'curabitur', 'tortor', 'nibh',
'quisqu', 'volutpat', 'condimentum', 'velit']

For a complete patent document:
claims = [
Claim("Claim {0} has an x.".format(num), num)
for num in range(1, 10)
claimset = Claimset(claims)
desc = Description(["one", "two", "three"])
fig = Figures()
classification = Classification("A")
pd = PatentDoc(

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

patentmodels-0.0.5.tar.gz (10.8 kB view hashes)

Uploaded source

Built Distribution

patentmodels-0.0.5-py2.py3-none-any.whl (15.0 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page