{"id":19508040,"url":"https://github.com/jepemo/nlptools","last_synced_at":"2026-05-20T14:05:05.357Z","repository":{"id":57446401,"uuid":"83344384","full_name":"jepemo/nlptools","owner":"jepemo","description":"A unix-inspired tools for Natural Language Processing","archived":false,"fork":false,"pushed_at":"2017-08-03T09:54:44.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T23:49:09.208Z","etag":null,"topics":["machine-learning","nlp","python","shell","unix"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jepemo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-27T18:46:32.000Z","updated_at":"2018-07-04T13:49:40.000Z","dependencies_parsed_at":"2022-09-02T23:40:36.800Z","dependency_job_id":null,"html_url":"https://github.com/jepemo/nlptools","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/jepemo/nlptools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jepemo%2Fnlptools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jepemo%2Fnlptools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jepemo%2Fnlptools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jepemo%2Fnlptools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jepemo","download_url":"https://codeload.github.com/jepemo/nlptools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jepemo%2Fnlptools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266578680,"owners_count":23951150,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["machine-learning","nlp","python","shell","unix"],"created_at":"2024-11-10T23:03:03.702Z","updated_at":"2026-05-20T14:05:05.301Z","avatar_url":"https://github.com/jepemo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":" # nlptools\n*nlptools* are an Unix inspired utilities for Natural Language Processing.\n\n- [Getting Started](#getting-started)\n- [Examples](#examples)\n  - [Basic tokenization](#basic-tokenization)\n  - [Lemmatization and Stemming](#lemmatization-and-stemming)\n  - [Basic features](#basic-features)\n  - [Data fetching](#data-fetching)\n- [Documentation](#documentation)\n  - [Commands](#commands)\n  - [Cookbook](#cookbook)\n\n## Getting Started\n\nJust install it with the pip client:\n\n```bash\npip install nlptools\n```\n\nAnd then you can use all the commands:\n\n```bash\nproc-tkn --help\n\n# usage: proc-tkn [-h] [--lang LANG]\n#\n# Tokenize input and results one token per line\n#\n# optional arguments:\n#   -h, --help   show this help message and exit\n#   --lang LANG  Language (defalt: english): spanish, etc.\n```\n\n## Examples\n\n### Basic tokenization\n\n```bash\necho \"Hello world!\" | proc-tkn\n\n# Result:\n#\n# Hello\n# world\n# !\n```\n\n### Lemmatization and Stemming\n\n```bash\necho \"dog dogs\" | bin/proc-tkn | bin/proc-lmtz\n\n# Result:\n#\n# dog\n# dog\n```\n\n### Basic features\n\n```bash\necho \"Roses are red. Violets are blue. Sugar is sweet. And so are you.\" \\\n  | proc-tkn \\\n  | proc-lmtz \\\n  | feat-tfidf --type idf --sep .\n\n# Result\n#\n# and 0.0 0.0 0.0 1.0\n# are 0.4444444444444444 0.4444444444444444 0.0 0.3333333333333333\n# blue 0.0 1.3333333333333333 0.0 0.0\n# is 0.0 0.0 1.3333333333333333 0.0\n# red 1.3333333333333333 0.0 0.0 0.0\n# roses 1.3333333333333333 0.0 0.0 0.0\n# so 0.0 0.0 0.0 1.0\n# sugar 0.0 0.0 1.3333333333333333 0.0\n# sweet 0.0 0.0 1.3333333333333333 0.0\n# violets 0.0 1.3333333333333333 0.0 0.0\n# you 0.0 0.0 0.0 1.0\n```\n\n### Data fetching\n```bash\nfetch-url https://www.gutenberg.org/files/996/old/1donq10.txt \\\n  | proc-tkn \\\n  | sort \\\n  | uniq -c\n\n# Result\n#\n#   5312 ``\n#      1 ~\n#      1 \u003c\n#      1 =\n#      1 \u003e\n#      1 _\n#     40 -\n#  36793 ,\n#   6057 ;\n#    370 :\n#    677 !\n#    970 ?\n#      1 /\n#   7723 .\n#      1 ...\n#    503 '\n#      1 '-\n#   5222 ''\n#    209 (\n#    209 )\n#     20 [\n#     20 ]\n#    .....\n```\n\n## Documentation\n\n### [Commands](doc/commands.md)\n### [CookBook](doc/cookbook.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjepemo%2Fnlptools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjepemo%2Fnlptools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjepemo%2Fnlptools/lists"}