{"id":34033845,"url":"https://github.com/sepinetam/texiv","last_synced_at":"2026-04-08T12:02:32.029Z","repository":{"id":301944606,"uuid":"1010756423","full_name":"SepineTam/TexIV","owner":"SepineTam","description":"A machine learning–based package for transforming text into instrumental variables (IV).","archived":false,"fork":false,"pushed_at":"2025-08-09T04:01:14.000Z","size":3457,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-25T06:15:16.419Z","etag":null,"topics":["econometrics","instrumental-variables","iv","iv-2sls","machine-learning","stata","texiv"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SepineTam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-29T18:31:31.000Z","updated_at":"2025-10-18T13:12:06.000Z","dependencies_parsed_at":"2025-07-16T03:24:52.997Z","dependency_job_id":"100c9c10-8104-49a3-aa19-fd71a913415f","html_url":"https://github.com/SepineTam/TexIV","commit_stats":null,"previous_names":["sepinetam/texiv"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/SepineTam/TexIV","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SepineTam%2FTexIV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SepineTam%2FTexIV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SepineTam%2FTexIV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SepineTam%2FTexIV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SepineTam","download_url":"https://codeload.github.com/SepineTam/TexIV/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SepineTam%2FTexIV/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31554110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["econometrics","instrumental-variables","iv","iv-2sls","machine-learning","stata","texiv"],"created_at":"2025-12-13T19:23:10.565Z","updated_at":"2026-04-08T12:02:31.980Z","avatar_url":"https://github.com/SepineTam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"source/img/TexIV-logo_16_9.png\" width=\"256\" alt=\"TexIV Logo\"\u003e\n\u003c/p\u003e\n\n---\nA machine learning–based package for transforming text into instrumental variables (IV).\n\n![PythonMin](https://img.shields.io/badge/Python-3.11+-yellow) \n![StataMin](https://img.shields.io/badge/Stata-17+-blue) \n[![PyPI version](https://img.shields.io/pypi/v/texiv.svg)](https://pypi.org/project/texiv/)\n[![PyPI Downloads](https://static.pepy.tech/badge/texiv)](https://pepy.tech/projects/texiv)\n[![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](LICENSE)\n[![Issue](https://img.shields.io/badge/Issue-report-green.svg)](https://github.com/sepinetam/texiv/issues/new)\n![release](https://img.shields.io/github/release-date/sepinetam/texiv)\n[![Wiki](https://img.shields.io/badge/Doc-Wiki-blue.svg)](https://github.com/sepinetam/texiv/wiki)\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/SepineTam/TexIV)\n\n---\n\n## 🌰 Example\nVisit [Stata Example File](source/example/dofiles/main.do) and [Python Example File](source/example/pyscript/main.py).\n\nThere is a step-by-step example.\n\n## ✨ Feature\n\n- Support multiple Chinese word segmentation and embedding methods\n- Customizable stopwords\n- Support keyword relevance filtering and two-stage filtering\n- Output includes frequency, total count, and ratio statistics\n\n## 📦 Requirements\n\n- Python 3.11+\n- Recommended to use virtual environment (e.g., `venv` or `conda`)\n\n## 🚀 Quickly Start\n\n### Install\n```bash\npip install texiv\n```\n\n### Usage\n```python\nfrom typing import List\n\nfrom texiv import TexIV\n\ntexiv = TexIV()\ncontent: str = \"This is a test text...\"\nkeywords: List[str] = [\"keyword1\", \"keyword2\", \"keyword3\"]\ntexiv.texiv_it(content, keywords)\n```\n\nOutput example:\n\n```\n{'freq': 7, 'count': 34, 'rate': 0.20588235294117646}\n```\n\n## 🖥️ Command Line Tool\n\nThe project also provides a command-line interface that can be used directly after installation:\n\n```bash\ntexiv --help\n```\n\n## 🛠️ Configuration\n\nAll models and parameters can be adjusted through configuration files in `～/.texiv/config.toml`.\n\n\n## 📄 License\nThis project is licensed under the GNU Affero General Public License v3.0. See [LICENSE](LICENSE) for details.\n\n**Note:** Commercial use requires compliance with AGPL-3.0 terms, including source code disclosure for network services.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepinetam%2Ftexiv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsepinetam%2Ftexiv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsepinetam%2Ftexiv/lists"}