liwca


Nameliwca JSON
Version 0.0.1a1 PyPI version JSON
download
home_pageNone
SummaryLIWC Assistant
upload_time2024-10-22 17:26:35
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords liwc text language datasets
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # liwca

LIWCA is a [LIWC](https://liwc.app) assistant. It is not a copy of LIWC (they don't like that), it is just helper functions that I've found useful.

Stuff like:

- Reading and writing dictionary files (`.dic[x]`)
- Converting between `.dic` and `.dicx` files
- Converting between dictionary (`.dic[x]`) and tabular (`.[ct]sv`) files
- Fetching public dictionary files from remote repositories
- Calling `liwc-22-cli` from Python


### Install with pip

```shell
pip install liwca
```


## Examples

```python
import liwca

# Download and read a public dictionary
dx = liwca.fetch_dx("sleep")

# Write local dictionary files
liwca.write_dx(dx, "./sleep.dic")
liwca.write_dx(dx, "./sleep.dicx")

# Read local dictionaries
dx = liwca.read_dic("./sleep.dic")
dx = liwca.read_dicx("./sleep.dicx")

dx.to_dicx("./moral-foundations.dicx")

# Load local dictionary
dic = liwca.read_dx("./sleep.dicx")
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "liwca",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Remington Mallett <mallett.remy@gmail.com>",
    "keywords": "LIWC, text, language, datasets",
    "author": null,
    "author_email": "Remington Mallett <mallett.remy@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ce/cd/93f4650a622b7e141ca82c3537cf767f79c4881f43d883a490f0f18f0a7c/liwca-0.0.1a1.tar.gz",
    "platform": null,
    "description": "# liwca\r\n\r\nLIWCA is a [LIWC](https://liwc.app) assistant. It is not a copy of LIWC (they don't like that), it is just helper functions that I've found useful.\r\n\r\nStuff like:\r\n\r\n- Reading and writing dictionary files (`.dic[x]`)\r\n- Converting between `.dic` and `.dicx` files\r\n- Converting between dictionary (`.dic[x]`) and tabular (`.[ct]sv`) files\r\n- Fetching public dictionary files from remote repositories\r\n- Calling `liwc-22-cli` from Python\r\n\r\n\r\n### Install with pip\r\n\r\n```shell\r\npip install liwca\r\n```\r\n\r\n\r\n## Examples\r\n\r\n```python\r\nimport liwca\r\n\r\n# Download and read a public dictionary\r\ndx = liwca.fetch_dx(\"sleep\")\r\n\r\n# Write local dictionary files\r\nliwca.write_dx(dx, \"./sleep.dic\")\r\nliwca.write_dx(dx, \"./sleep.dicx\")\r\n\r\n# Read local dictionaries\r\ndx = liwca.read_dic(\"./sleep.dic\")\r\ndx = liwca.read_dicx(\"./sleep.dicx\")\r\n\r\ndx.to_dicx(\"./moral-foundations.dicx\")\r\n\r\n# Load local dictionary\r\ndic = liwca.read_dx(\"./sleep.dicx\")\r\n```\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "LIWC Assistant",
    "version": "0.0.1a1",
    "project_urls": {
        "Homepage": "https://github.com/remrama/liwca"
    },
    "split_keywords": [
        "liwc",
        " text",
        " language",
        " datasets"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cecd93f4650a622b7e141ca82c3537cf767f79c4881f43d883a490f0f18f0a7c",
                "md5": "e07f8122e3206a25186efeeec82fd701",
                "sha256": "b0f0fb41cb3eaca12de6906246d9c8e2d0644261319b7109d25d54bd8982e4b8"
            },
            "downloads": -1,
            "filename": "liwca-0.0.1a1.tar.gz",
            "has_sig": false,
            "md5_digest": "e07f8122e3206a25186efeeec82fd701",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10722,
            "upload_time": "2024-10-22T17:26:35",
            "upload_time_iso_8601": "2024-10-22T17:26:35.800976Z",
            "url": "https://files.pythonhosted.org/packages/ce/cd/93f4650a622b7e141ca82c3537cf767f79c4881f43d883a490f0f18f0a7c/liwca-0.0.1a1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-22 17:26:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "remrama",
    "github_project": "liwca",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "liwca"
}
        
Elapsed time: 0.41048s