Skip to main content

Parser for CV in russian language. Supported formats: pdf, txt, docx

Project description

General information

Parser extracts as many as possible information from the CV text. It uses natasha library for entities recognition and yargy parser for rule-based parsing.

Information that can be extracted:

  • socdem:
    • name,
    • gender,
    • date_of_birth,
    • age,
    • location
  • career:
    • period,
    • org_name,
    • occupation
  • education:
    • year,
    • name,
    • specialization
  • hobby:
    • name

Installation

pip install russianCVparser

Usage

Parser supports documents in docx, pdf and txt formats.

from russianCVparser import CVparser, Document, show_json

parser = CVparser()
document = Document('path/to/doc.pdf')
data = parser.parse_text(document.text) # returns an OrderedDict instance
show_json(data)

Example

from russianCVparser import CVparser, Document, show_json

parser = CVparser()
document = Document('CV.pdf')
data = parser.parse_text(document.text)
show_json(data)

Output:

{
  "socdem": {
    "name": "Иванов Иван Иванович",
    "gender": "male",
    "date_of_birth": {
      "year": 1981,
      "month": 5,
      "day": 2
    },
    "age": "39 лет",
    "location": {
      "name": "Казань"
    }
  },
  "career": [
    {
      "period": {
        "from_date": {
          "month": 12,
          "year": 2017
        }
      },
      "org_name": "ООО "Инвест-консалт"",
      "occupation": "Ведущий специалист"
    },
    {
      "period": {
        "from_date": {
          "month": 2,
          "year": 2011
        },
        "to_date": {
          "month": 6,
          "year": 2017
        }
      },
      "org_name": "Казгорсеть",
      "occupation": "Ведущий специалист"
    },
    {
      "period": {
        "from_date": {
          "month": 2,
          "year": 2010
        },
        "to_date": {
          "month": 2,
          "year": 2011
        }
      },
      "org_name": "ООО Адванс",
      "occupation": "Аналитик"
    }
  ],
  "education": [
    {
      "year": 2015,
      "name": "Российский государственный аграрный университет"
    },
    {
      "year": 2016,
      "name": "Московский Государственный Технический Университет"
    }
  ],
  "hobby": [
    {
      "name": [
        "футбол",
        "рыбалка",
        "шахматы"
      ]
    }
  ]
}

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

russianCVparser-1.1.tar.gz (101.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

russianCVparser-1.1-py3-none-any.whl (107.7 kB view details)

Uploaded Python 3

File details

Details for the file russianCVparser-1.1.tar.gz.

File metadata

  • Download URL: russianCVparser-1.1.tar.gz
  • Upload date:
  • Size: 101.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.7

File hashes

Hashes for russianCVparser-1.1.tar.gz
Algorithm Hash digest
SHA256 d07f4eb9f2e267835bd6bc28002ca86d555adb27a2c9706eecd22cf50a3e7cc1
MD5 65406dc6d2d103440049d447a33a8184
BLAKE2b-256 615cbe6989d17aa30d0a9c2b47d3b01ae5a410df738e5bcd9433129fc87d8960

See more details on using hashes here.

File details

Details for the file russianCVparser-1.1-py3-none-any.whl.

File metadata

  • Download URL: russianCVparser-1.1-py3-none-any.whl
  • Upload date:
  • Size: 107.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.7

File hashes

Hashes for russianCVparser-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 58b1f586c87eece1e23f1ca3b6d7fd397d06cfb4627a6526ec0f99baee7e6bed
MD5 b5c73dff53680694c814ced24ad54272
BLAKE2b-256 de8bee321d32f086b336c42a9cf6f869fe892bf2f6596b3cd4f30be88bba252a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page