Skip to main content

Package for Bulgarian Natural Language Processing.

Project description

Package functionalities:

  • Part-of-speech tagging

    from bgnlp import PosTagger, PosTaggerConfig
    
    
    
    
    
    config = PosTaggerConfig()
    
    pos = PosTagger(config=config)
    
    
    
    print(pos("Това е библиотека за обработка на естествен език."))
    
    [{
    
        "word": "Това",
    
        "tag": "PDOsn",
    
        "bg_desc": "местоимение",
    
        "en_desc": "pronoun"
    
    }, {
    
        "word": "е",
    
        "tag": "VLINr3s",
    
        "bg_desc": "глагол",
    
        "en_desc": "verb"
    
    }, {
    
        "word": "библиотека",
    
        "tag": "NCFsof",
    
        "bg_desc": "съществително име",
    
        "en_desc": "noun"
    
    }, {
    
        "word": "за",
    
        "tag": "R",
    
        "bg_desc": "предлог",
    
        "en_desc": "preposition"
    
    }, {
    
        "word": "обработка",
    
        "tag": "NCFsof",
    
        "bg_desc": "съществително име",
    
        "en_desc": "noun"
    
    }, {
    
        "word": "на",
    
        "tag": "R",
    
        "bg_desc": "предлог",
    
        "en_desc": "preposition"
    
    }, {
    
        "word": "естествен",
    
        "tag": "Asmo",
    
        "bg_desc": "прилагателно име",
    
        "en_desc": "adjective"
    
    }, {
    
        "word": "език",
    
        "tag": "NCMsom",
    
        "bg_desc": "съществително име",
    
        "en_desc": "noun"
    
    }, {
    
        "word": ".",
    
        "tag": "U",
    
        "bg_desc": "препинателен знак",
    
        "en_desc": "punctuation"
    
    }]
    

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

bgnlp-0.0.6.tar.gz (14.3 kB view hashes)

Uploaded Source

Built Distribution

bgnlp-0.0.6-py3-none-any.whl (13.9 kB view hashes)

Uploaded Python 3

Supported by

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