kitconc 3.4.4__tar.gz → 4.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kitconc-4.0.0/CHANGES.txt +93 -0
- kitconc-4.0.0/MANIFEST.in +11 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/PKG-INFO +69 -35
- kitconc-3.4.4/kitconc.egg-info/PKG-INFO → kitconc-4.0.0/README.txt +55 -51
- {kitconc-3.4.4 → kitconc-4.0.0}/embeddings/sqlite_vec_search.py +1 -1
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/agent/actions.py +555 -32
- kitconc-4.0.0/kitconc/agent/corpus_tools.py +520 -0
- kitconc-4.0.0/kitconc/agent/expressions.py +465 -0
- kitconc-4.0.0/kitconc/agent/guides/expressions.md +42 -0
- kitconc-4.0.0/kitconc/agent/guides/measures.md +48 -0
- kitconc-4.0.0/kitconc/agent/guides/overview.md +58 -0
- kitconc-4.0.0/kitconc/agent/guides/pipelines.md +64 -0
- kitconc-4.0.0/kitconc/agent/guides/recipes.md +52 -0
- kitconc-4.0.0/kitconc/agent/guides/terminology.md +46 -0
- kitconc-4.0.0/kitconc/agent/jobs.py +210 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/agent/mcp_server.py +73 -4
- kitconc-4.0.0/kitconc/agent/pipeline.py +322 -0
- kitconc-4.0.0/kitconc/agent/progress.py +75 -0
- kitconc-4.0.0/kitconc/agent/recipes/collocation-entry.json +28 -0
- kitconc-4.0.0/kitconc/agent/recipes/compare-corpora.json +29 -0
- kitconc-4.0.0/kitconc/agent/recipes/corpus-profile.json +22 -0
- kitconc-4.0.0/kitconc/agent/recipes/corpus-qa.json +19 -0
- kitconc-4.0.0/kitconc/agent/recipes/glossary-candidates.json +25 -0
- kitconc-4.0.0/kitconc/agent/recipes/glossary-contrastive.json +31 -0
- kitconc-4.0.0/kitconc/agent/recipes/keyword-report.json +22 -0
- kitconc-4.0.0/kitconc/agent/recipes/lexical-bundles.json +23 -0
- kitconc-4.0.0/kitconc/agent/recipes/synonym-comparison.json +22 -0
- kitconc-4.0.0/kitconc/agent/recipes/word-frequency-comparison.json +19 -0
- kitconc-4.0.0/kitconc/agent/recipes/word-profile.json +25 -0
- kitconc-4.0.0/kitconc/agent/recipes.py +134 -0
- kitconc-4.0.0/kitconc/agent/resources.py +242 -0
- kitconc-4.0.0/kitconc/agent/result_ops.py +397 -0
- kitconc-4.0.0/kitconc/agent/results.py +263 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/agent/schemas.py +1 -0
- kitconc-4.0.0/kitconc/agent/skill/kitconc/SKILL.md +124 -0
- kitconc-4.0.0/kitconc/agent/skill/kitconc/references/expressions.md +51 -0
- kitconc-4.0.0/kitconc/agent/skill/kitconc/references/pipelines.md +99 -0
- kitconc-4.0.0/kitconc/agent/skill/kitconc/references/python-api.md +49 -0
- kitconc-4.0.0/kitconc/agent/skill_installer.py +74 -0
- kitconc-4.0.0/kitconc/agent/tagsets.py +221 -0
- kitconc-4.0.0/kitconc/agent/tool_cli.py +105 -0
- kitconc-4.0.0/kitconc/agent/tools.py +920 -0
- kitconc-4.0.0/kitconc/archive.py +123 -0
- kitconc-4.0.0/kitconc/data/pos_tagger_english.pickle +0 -0
- kitconc-4.0.0/kitconc/data/pos_tagger_portuguese.pickle +0 -0
- kitconc-4.0.0/kitconc/data/sent_tokenizer_english.pickle +0 -0
- kitconc-4.0.0/kitconc/data/sent_tokenizer_portuguese.pickle +0 -0
- kitconc-4.0.0/kitconc/data/word_tokenizer_english.pickle +0 -0
- kitconc-4.0.0/kitconc/data/word_tokenizer_portuguese.pickle +0 -0
- kitconc-4.0.0/kitconc/export_corpus.py +49 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_app.py +349 -552
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_cmd.py +284 -84
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_corpus.py +754 -124
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_models.py +16 -17
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_plots.py +133 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_tools.py +88 -1
- kitconc-4.0.0/kitconc/kit_util.py +575 -0
- kitconc-4.0.0/kitconc/nlp.py +91 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_collocates.py +18 -4
- kitconc-4.0.0/kitconc/py_extras.py +476 -0
- kitconc-4.0.0/kitconc/py_measures.py +264 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_ngrams.py +20 -15
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_wordlist.py +10 -2
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/tagged.py +14 -8
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/tagging.py +15 -8
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/version.py +1 -1
- kitconc-4.0.0/kitconc.egg-info/PKG-INFO +201 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc.egg-info/SOURCES.txt +44 -4
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc.egg-info/entry_points.txt +2 -0
- kitconc-4.0.0/kitconc.egg-info/requires.txt +20 -0
- kitconc-4.0.0/kitconc.egg-info/top_level.txt +6 -0
- kitconc-4.0.0/pyproject.toml +71 -0
- kitconc-4.0.0/tests/test_agent_cli_and_skill.py +90 -0
- kitconc-4.0.0/tests/test_agent_mcp_server.py +238 -0
- kitconc-4.0.0/tests/test_agent_workflows.py +474 -0
- kitconc-4.0.0/tests/test_analysis_features.py +270 -0
- kitconc-4.0.0/tests/test_corpus_ingestion.py +104 -0
- kitconc-4.0.0/tests/test_legacy_reliability.py +128 -0
- kitconc-4.0.0/tests/test_nlp.py +23 -0
- kitconc-3.4.4/CHANGES.txt +0 -13
- kitconc-3.4.4/MANIFEST.in +0 -10
- kitconc-3.4.4/README.txt +0 -130
- kitconc-3.4.4/kitconc/data/pos_tagger_english.pickle +0 -0
- kitconc-3.4.4/kitconc/data/pos_tagger_portuguese.pickle +0 -0
- kitconc-3.4.4/kitconc/data/sent_tokenizer_english.pickle +0 -0
- kitconc-3.4.4/kitconc/data/sent_tokenizer_portuguese.pickle +0 -0
- kitconc-3.4.4/kitconc/data/word_tokenizer_english.pickle +0 -0
- kitconc-3.4.4/kitconc/data/word_tokenizer_portuguese.pickle +0 -0
- kitconc-3.4.4/kitconc/export_corpus.py +0 -27
- kitconc-3.4.4/kitconc/kit_util.py +0 -328
- kitconc-3.4.4/kitconc.egg-info/requires.txt +0 -17
- kitconc-3.4.4/kitconc.egg-info/top_level.txt +0 -3
- kitconc-3.4.4/pyproject.toml +0 -10
- kitconc-3.4.4/requirements.txt +0 -32
- kitconc-3.4.4/setup.py +0 -54
- kitconc-3.4.4/tests/__init__.py +0 -0
- kitconc-3.4.4/tests/conftest.py +0 -107
- kitconc-3.4.4/tests/test_agent_mcp_server.py +0 -62
- {kitconc-3.4.4 → kitconc-4.0.0}/LICENSE.txt +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/embeddings/__init__.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/embeddings/chunker.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/embeddings/util.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/__init__.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/agent/__init__.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/cli_app.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/core.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/gui_lang.pickle +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/gui_lang_default.pickle +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/images/excel.png +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/images/python.png +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/images/python3.ico +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/images/python3_b.ico +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/images/python_b.png +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/images/script.png +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/images/text.png +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/images/tool.png +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/lemmas_english.tab +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/reflist_english.tab +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/reflist_no-tagging.tab +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/reflist_portuguese.tab +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/scripts/hello.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/stoplist_english.tab +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/stoplist_no-tagging.tab +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/stoplist_portuguese.tab +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/data/ubuntu.ttf +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/indexing.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_app_language.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_data.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/kit_spacy.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/npyarrays.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_clusters.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_concordance.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_dispersion.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_keywords.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_keywords_dispersion.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_kwic.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_wfreqinfiles.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc/py_wtfreq.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/kitconc.egg-info/dependency_links.txt +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/setup.cfg +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/tests/test_py_keywords.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/tests/test_py_ngrams.py +0 -0
- {kitconc-3.4.4 → kitconc-4.0.0}/tests/test_py_wordlist.py +0 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Version 4.0.0
|
|
2
|
+
-------------
|
|
3
|
+
- 2026-10-11
|
|
4
|
+
- Breaking (MCP): `kitconc-mcp` now exposes a curated, agent-oriented tool set instead of one tool per
|
|
5
|
+
`KitconcActions` method. Tools are grouped and renamed (`analyze_wordlist`, `corpus_create`, `result_export`...),
|
|
6
|
+
take an explicit `corpus` instead of a selected corpus, and return a `result_id` with one page of rows. Run
|
|
7
|
+
`kitconc-mcp --tool-set legacy` to keep the 3.x tools; see "Migrating from 3.x" in docs/MCP.md. The Python API
|
|
8
|
+
(`Corpus`, `KitconcActions`) is unchanged.
|
|
9
|
+
- MCP: analysis results are stored on the server (persisted in `<workspace>/.kitconc_results`) and can be paged,
|
|
10
|
+
filtered, derived with a safe expression language (`per_million`, `log_likelihood`, `log_ratio`, `c_value`...),
|
|
11
|
+
joined, combined, aggregated, enriched with corpus evidence (examples, definitions, dispersion, collocates) and
|
|
12
|
+
exported without sending rows through the conversation.
|
|
13
|
+
- MCP: new tools `corpus_tagset`, `corpus_qa`, `subcorpus_create`, `term_candidates` (tagset-agnostic term
|
|
14
|
+
extraction for Brown/Penn, Universal POS/spaCy, Mac-Morpho and untagged corpora), `context_mine` and `text_stats`.
|
|
15
|
+
- MCP: declarative pipelines (`pipeline_run`), 11 built-in editable recipes (glossary candidates, domain-specific
|
|
16
|
+
glossaries, corpus comparison, word profiles, near-synonyms, collocation entries, lexical bundles, keyword report,
|
|
17
|
+
corpus profile, word frequencies across corpora, corpus QA), user recipes and background jobs with progress and
|
|
18
|
+
cancellation.
|
|
19
|
+
- MCP: tool annotations, structured errors with hints, server instructions, resources (`kitconc://...`), one prompt
|
|
20
|
+
per recipe plus `plan-analysis`, argument completion, built-in guides, `--read-only`, `--disk-capacity` and
|
|
21
|
+
`--job-workers` options.
|
|
22
|
+
- Agents: `kitconc-tool` runs every agent tool from the command line (JSON in, JSON out), and
|
|
23
|
+
`kitconc-skill install` installs the Kitconc skill for Claude (~/.claude/skills) and Codex (~/.agents/skills).
|
|
24
|
+
- Redesigned README with the new logo and a guide to using Kitconc with AI assistants.
|
|
25
|
+
- Fixed corpus creation tokenizing binary files found in the source folder (e.g. SQLite databases); they are now
|
|
26
|
+
skipped with a warning.
|
|
27
|
+
- Fixed info.tab metadata written without a final newline, which merged fields such as
|
|
28
|
+
"encoding: utf-8Textfiles: 98"; existing files are repaired when read.
|
|
29
|
+
- Tabular `KitconcActions` methods also return `columns`.
|
|
30
|
+
- Updated pyjwt, pypdf, torch (optional "full" extra) and urllib3.
|
|
31
|
+
- Added a test workflow on every push and pull request (Ubuntu and Windows, Python 3.10 and 3.12).
|
|
32
|
+
- Added advanced analysis options (all optional; default results are unchanged):
|
|
33
|
+
- Keywords against another corpus of the workspace (`ref_corpus`), effect sizes (Log Ratio, Dice, LogDice, MI, MI3,
|
|
34
|
+
RRF, DRF, z, t, %DIFF, odds ratio), negative keywords (`polarity`), p-value thresholds with optional Bonferroni
|
|
35
|
+
correction, two-term log-likelihood, chi-square with Yates correction and Text Dispersion Keyness.
|
|
36
|
+
- Collocates with 13 association measures (`measure`), extra measure columns (`extra_measures`), `min_freq`,
|
|
37
|
+
stoplists and allowlists.
|
|
38
|
+
- KWIC/concordance wildcards (`* ? + | [a,b]`), context search (AND/OR, exclusion), random samples and KWIC
|
|
39
|
+
pattern frequency (`Kwic.kpf()`); `Kwic.hide_node()` for gap-fill exercises.
|
|
40
|
+
- Clusters of any size with the search word on the left or right (`position`).
|
|
41
|
+
- N-gram search filter and p-frames (n-grams with open slots, with variants, TTR and entropy).
|
|
42
|
+
- Dispersion statistics (Range, SD, CV, Juilland's D, Gries' DP) in `dispersion()` and `dispersion_measures()`;
|
|
43
|
+
optional RANGE/JUILLAND_D/DP columns in `wordlist(dispersion=True)`.
|
|
44
|
+
- Lemma lists (`lemmalist()`), file view (`fileview()`) and word clouds (`wordcloud()`).
|
|
45
|
+
- Stoplists/allowlists (lists, files or 'default') in wordlist, keywords, collocates, clusters and n-grams.
|
|
46
|
+
- New CLI commands `pframes`, `lemmalist`, `dispersion_measures`, `fileview` and `wordcloud`, new flags for existing
|
|
47
|
+
commands, and matching MCP tools.
|
|
48
|
+
- Corpus creation converts DOCX, ODT, EPUB, HTML/XHTML and XML files to text.
|
|
49
|
+
- Fixed `wordlist(lowercase=False)`, which raised an error.
|
|
50
|
+
- Fixed `dispersion()` for search terms without hits, which raised an error.
|
|
51
|
+
- Fixed the CLI/GUI `keywords --measure tf-idf`, which silently used log-likelihood.
|
|
52
|
+
- Added an MCP export tool for analysis results in `.tab`, `.tsv`, and `.xlsx` formats.
|
|
53
|
+
- Added MCP tools to build per-corpus semantic embedding indexes and inspect their status; semantic search now selects the active corpus index by default.
|
|
54
|
+
- Improved filesystem-based corpus creation for source paths containing spaces and rejected unsafe or colliding corpus names.
|
|
55
|
+
- Corpus processing now checks tagging and indexing process results, restores existing indexes after failure, cleans temporary files, and records text counts without duplicate metadata rows.
|
|
56
|
+
- Corpus imports now validate ZIP contents and extract through a temporary directory; remote imports enforce timeouts and download limits.
|
|
57
|
+
- Corpus exports are written atomically, and Tkinter corpus and analysis tasks now deliver results to the main UI thread.
|
|
58
|
+
|
|
59
|
+
Version 3.5.1
|
|
60
|
+
-------------
|
|
61
|
+
- 2026-09-05
|
|
62
|
+
- Migrated dependency management, development setup, CI, and Docker workflows to uv with a committed uv.lock file.
|
|
63
|
+
|
|
64
|
+
Version 3.5.0
|
|
65
|
+
2026-09-05
|
|
66
|
+
- Replaced the NLTK-based tokenization and POS-tagging runtime with built-in components and converted bundled models.
|
|
67
|
+
- Added dependency-free NLP regression tests.
|
|
68
|
+
|
|
69
|
+
Version 3.4.6
|
|
70
|
+
2026-09-05
|
|
71
|
+
- Updated Pillow and cryptography dependency floors to security-fixed releases.
|
|
72
|
+
- Replaced the NLTK-based corpus tokenization and tagging pipeline with built-in components.
|
|
73
|
+
|
|
74
|
+
Version 3.4.5
|
|
75
|
+
2026-09-05
|
|
76
|
+
- Fixed MCP stdio regression coverage for Windows and other platforms.
|
|
77
|
+
- Declared the supported Python version in package metadata.
|
|
78
|
+
- Removed NumPy scalar-conversion deprecation warnings from n-gram processing.
|
|
79
|
+
- Added automated test execution to the release workflow.
|
|
80
|
+
|
|
81
|
+
Version 3.4.4
|
|
82
|
+
2026-04-10
|
|
83
|
+
- Added Docker installation/runtime option (`Dockerfile` and `.dockerignore`).
|
|
84
|
+
- Expanded README with complete MCP tools reference, prompt suggestions, and usage flows.
|
|
85
|
+
|
|
86
|
+
Version 3.4.3
|
|
87
|
+
2026-04-06
|
|
88
|
+
- Updated README requirements to match setup.py package dependencies.
|
|
89
|
+
- Documented additional full-environment dependencies from requirements.txt.
|
|
90
|
+
|
|
91
|
+
Version 3.0.3
|
|
92
|
+
2025-04-21
|
|
93
|
+
- Added examples.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
include *.txt
|
|
2
|
+
include kitconc/data/*.tab
|
|
3
|
+
include kitconc/data/*.pickle
|
|
4
|
+
include kitconc/data/*.ttf
|
|
5
|
+
include kitconc/data/images/*.png
|
|
6
|
+
include kitconc/data/images/*.ico
|
|
7
|
+
include kitconc/data/scripts/*.py
|
|
8
|
+
include kitconc/agent/guides/*.md
|
|
9
|
+
include kitconc/agent/recipes/*.json
|
|
10
|
+
include kitconc/agent/skill/kitconc/*.md
|
|
11
|
+
include kitconc/agent/skill/kitconc/references/*.md
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kitconc
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.0.0
|
|
4
4
|
Summary: A toolkit for Corpus Linguistics Analysis
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
License: MIT
|
|
5
|
+
Author-email: José Lopes Moreira Filho <jlopes@alumni.usp.br>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
9
8
|
Description-Content-Type: text/x-rst
|
|
10
9
|
License-File: LICENSE.txt
|
|
11
10
|
Requires-Dist: numpy<2.0.0,>=1.26.4
|
|
@@ -13,29 +12,23 @@ Requires-Dist: pandas<3.0.0,>=2.2.0
|
|
|
13
12
|
Requires-Dist: matplotlib<4.0.0,>=3.7.0
|
|
14
13
|
Requires-Dist: xlsxwriter<4.0.0,>=3.2.3
|
|
15
14
|
Requires-Dist: ttkbootstrap<2.0.0,>=1.12.0
|
|
16
|
-
Requires-Dist: pillow<
|
|
15
|
+
Requires-Dist: pillow<13.0.0,>=12.3.0
|
|
17
16
|
Requires-Dist: requests<3.0.0,>=2.31.0
|
|
18
|
-
Requires-Dist: nltk<4.0.0,>=3.9.1
|
|
19
17
|
Requires-Dist: chardet<6.0.0,>=5.2.0
|
|
20
18
|
Requires-Dist: pypdf<7.0.0,>=4.0.0
|
|
21
|
-
Requires-Dist: cryptography<
|
|
19
|
+
Requires-Dist: cryptography<51.0.0,>=50.0.0
|
|
22
20
|
Requires-Dist: mcp<2.0.0,>=1.0.0
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
Requires-Dist:
|
|
26
|
-
Requires-Dist:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
Dynamic: home-page
|
|
32
|
-
Dynamic: license
|
|
21
|
+
Provides-Extra: full
|
|
22
|
+
Requires-Dist: torch<2.14,>=2.6; extra == "full"
|
|
23
|
+
Requires-Dist: transformers<6.0.0,>=4.45; extra == "full"
|
|
24
|
+
Requires-Dist: sentence-transformers<6.0.0,>=3.0; extra == "full"
|
|
25
|
+
Requires-Dist: sqlite-vec<1.0.0,>=0.1.7; extra == "full"
|
|
26
|
+
Requires-Dist: fastapi<1.0.0,>=0.110; extra == "full"
|
|
27
|
+
Requires-Dist: uvicorn[standard]<1.0.0,>=0.27; extra == "full"
|
|
28
|
+
Requires-Dist: python-dotenv<2.0.0,>=1.0.0; extra == "full"
|
|
33
29
|
Dynamic: license-file
|
|
34
|
-
Dynamic: provides-extra
|
|
35
|
-
Dynamic: requires-dist
|
|
36
|
-
Dynamic: summary
|
|
37
30
|
|
|
38
|
-
Kitconc 3.
|
|
31
|
+
Kitconc 3.5.0
|
|
39
32
|
=============
|
|
40
33
|
|
|
41
34
|
Kitconc is a package for Corpus Linguistics and text analysis with Python.
|
|
@@ -52,32 +45,31 @@ It contains, among other things, tools for creating:
|
|
|
52
45
|
* Semantic search with sentence embeddings.
|
|
53
46
|
|
|
54
47
|
The package is built on top of platforms and packages for scientific research:
|
|
55
|
-
numpy, pandas,
|
|
48
|
+
numpy, pandas, XlsxWriter and matplotlib. Corpus tokenization and tagging use built-in dependency-free components.
|
|
56
49
|
|
|
57
50
|
Requirements
|
|
58
51
|
============
|
|
59
52
|
|
|
60
53
|
Kitconc requires Python 3.10 or later.
|
|
61
54
|
|
|
62
|
-
|
|
55
|
+
Core dependencies (managed by uv):
|
|
63
56
|
|
|
64
57
|
numpy>=1.26.4,<2.0.0
|
|
65
58
|
pandas>=2.2.0,<3.0.0
|
|
66
59
|
matplotlib>=3.7.0,<4.0.0
|
|
67
60
|
xlsxwriter>=3.2.3,<4.0.0
|
|
68
61
|
ttkbootstrap>=1.12.0,<2.0.0
|
|
69
|
-
pillow>=
|
|
62
|
+
pillow>=12.3.0,<13.0.0
|
|
70
63
|
requests>=2.31.0,<3.0.0
|
|
71
|
-
nltk>=3.9.1,<4.0.0
|
|
72
64
|
chardet>=5.2.0,<6.0.0
|
|
73
65
|
pypdf>=4.0.0,<7.0.0
|
|
74
|
-
cryptography>=
|
|
66
|
+
cryptography>=50.0.0,<51.0.0
|
|
75
67
|
mcp>=1.0.0,<2.0.0
|
|
76
68
|
setuptools>=70.0.0
|
|
77
69
|
|
|
78
|
-
|
|
70
|
+
Optional full dependencies (embeddings, API and local environment):
|
|
79
71
|
|
|
80
|
-
torch>=2.6,<2.10 (CPU wheels
|
|
72
|
+
torch>=2.6,<2.10 (CPU wheels from the configured pytorch-cpu uv index)
|
|
81
73
|
transformers>=4.45,<6.0.0
|
|
82
74
|
sentence-transformers>=3.0,<6.0.0
|
|
83
75
|
sqlite-vec>=0.1.7,<1.0.0
|
|
@@ -85,16 +77,29 @@ fastapi>=0.110,<1.0.0
|
|
|
85
77
|
uvicorn[standard]>=0.27,<1.0.0
|
|
86
78
|
python-dotenv>=1.0.0,<2.0.0
|
|
87
79
|
|
|
88
|
-
Installation
|
|
89
|
-
|
|
80
|
+
Installation with uv
|
|
81
|
+
====================
|
|
82
|
+
|
|
83
|
+
uv sync
|
|
84
|
+
|
|
85
|
+
For the complete local environment:
|
|
90
86
|
|
|
91
|
-
|
|
87
|
+
uv sync --all-extras
|
|
88
|
+
|
|
89
|
+
Run commands with uv run, for example:
|
|
90
|
+
|
|
91
|
+
uv run kitconc-mcp --transport stdio
|
|
92
|
+
uv run pytest
|
|
92
93
|
|
|
93
94
|
Kitconc App (graphical interface)
|
|
94
95
|
=================================
|
|
95
96
|
|
|
96
97
|
kitconc-app
|
|
97
98
|
|
|
99
|
+
The desktop app continues to use the filesystem workspace format (info.tab, corpus indexes, and output files). Corpus creation accepts source folders whose paths contain spaces. Corpus names may contain letters, numbers, underscores, dots, and hyphens, except . and ..
|
|
100
|
+
|
|
101
|
+
ZIP imports are validated and will not replace a corpus already present in the workspace. The default maximum expanded archive size is 2 GiB (KITCONC_MAX_IMPORT_BYTES); URL imports are limited to 512 MiB by default (KITCONC_MAX_DOWNLOAD_BYTES). Export creates or atomically replaces <corpus>.zip in the selected destination and continues to exclude Excel result files.
|
|
102
|
+
|
|
98
103
|
Agent Layer (internal actions)
|
|
99
104
|
==============================
|
|
100
105
|
|
|
@@ -127,11 +132,39 @@ or (legacy SSE):
|
|
|
127
132
|
|
|
128
133
|
kitconc-mcp --transport sse --host 127.0.0.1 --port 8001
|
|
129
134
|
|
|
130
|
-
|
|
131
|
-
|
|
135
|
+
Semantic MCP tools::
|
|
136
|
+
|
|
137
|
+
semantic_index_status (corpus_name, db_path)
|
|
138
|
+
index_corpus (corpus_name, source_folder, db_path, model_name, chunk_size,
|
|
139
|
+
chunk_overlap, batch_size, rebuild)
|
|
140
|
+
semantic_search (query, top_k, db_path, model_name, corpus_name)
|
|
141
|
+
export_analysis_result (analysis_result, output_path, sheet_name)
|
|
142
|
+
|
|
143
|
+
Use index_corpus to create a per-corpus semantic index from TXT, Markdown,
|
|
144
|
+
RST, and PDF files in the source folder recorded in info.tab. Set source_folder
|
|
145
|
+
when that original path is unavailable. The index is stored under
|
|
146
|
+
<workspace>/.semantic_indexes/<corpus>.sqlite3. Existing indexes are retained
|
|
147
|
+
unless rebuild=True is requested. Then call semantic_search, optionally after
|
|
148
|
+
selecting the corpus with actions.use("name").
|
|
149
|
+
|
|
150
|
+
Install optional embedding dependencies with:
|
|
151
|
+
uv sync --extra full
|
|
152
|
+
|
|
153
|
+
To save an analysis result, pass its complete response object to
|
|
154
|
+
export_analysis_result and set output_path to a filename ending in .tab,
|
|
155
|
+
.tsv, or .xlsx. Only the response's rows are written; metadata such as total
|
|
156
|
+
is not exported. TAB and TSV files are UTF-8 tab-delimited; XLSX accepts an
|
|
157
|
+
optional sheet_name (1-31 characters; invalid characters: ``[]:*?/\\``). Files are written
|
|
158
|
+
atomically and replace an existing destination only after a successful
|
|
159
|
+
export. Parent directories are created when needed. The result reports the
|
|
160
|
+
resolved output_path, format, rows_written, and columns_written.
|
|
161
|
+
|
|
162
|
+
Example: pass the complete result from wordlist(corpus_name="ads") as
|
|
163
|
+
analysis_result, with output_path="C:/exports/wordlist.xlsx" and
|
|
164
|
+
sheet_name="Wordlist".
|
|
132
165
|
|
|
133
166
|
MCP runtime is included in package dependencies
|
|
134
|
-
(
|
|
167
|
+
(uv sync is enough).
|
|
135
168
|
|
|
136
169
|
What's new in 3.2.0
|
|
137
170
|
====================
|
|
@@ -141,6 +174,7 @@ What's new in 3.2.0
|
|
|
141
174
|
* Typed schemas -- available in kitconc.agent.schemas
|
|
142
175
|
* MCP server entrypoint -- run with kitconc-mcp
|
|
143
176
|
* Semantic search MCP tool -- semantic_search for sqlite-vec indexes
|
|
177
|
+
* MCP tools to build per-corpus embedding indexes and inspect index status
|
|
144
178
|
* Embedding index hardening -- transactional writes and thread-safe SQLite access
|
|
145
179
|
* Progress flag rename -- use verbose=True (replacing show_progress=True)
|
|
146
180
|
|
|
@@ -1,41 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Name: kitconc
|
|
3
|
-
Version: 3.4.4
|
|
4
|
-
Summary: A toolkit for Corpus Linguistics Analysis
|
|
5
|
-
Home-page: http://pypi.python.org/pypi/Kitconc/
|
|
6
|
-
Author: José Lopes Moreira Filho
|
|
7
|
-
Author-email: jlopes@alumni.usp.br
|
|
8
|
-
License: MIT
|
|
9
|
-
Description-Content-Type: text/x-rst
|
|
10
|
-
License-File: LICENSE.txt
|
|
11
|
-
Requires-Dist: numpy<2.0.0,>=1.26.4
|
|
12
|
-
Requires-Dist: pandas<3.0.0,>=2.2.0
|
|
13
|
-
Requires-Dist: matplotlib<4.0.0,>=3.7.0
|
|
14
|
-
Requires-Dist: xlsxwriter<4.0.0,>=3.2.3
|
|
15
|
-
Requires-Dist: ttkbootstrap<2.0.0,>=1.12.0
|
|
16
|
-
Requires-Dist: pillow<12.0.0,>=11.2.0
|
|
17
|
-
Requires-Dist: requests<3.0.0,>=2.31.0
|
|
18
|
-
Requires-Dist: nltk<4.0.0,>=3.9.1
|
|
19
|
-
Requires-Dist: chardet<6.0.0,>=5.2.0
|
|
20
|
-
Requires-Dist: pypdf<7.0.0,>=4.0.0
|
|
21
|
-
Requires-Dist: cryptography<47.0.0,>=3.1
|
|
22
|
-
Requires-Dist: mcp<2.0.0,>=1.0.0
|
|
23
|
-
Requires-Dist: setuptools>=70.0.0
|
|
24
|
-
Provides-Extra: dev
|
|
25
|
-
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
26
|
-
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
27
|
-
Dynamic: author
|
|
28
|
-
Dynamic: author-email
|
|
29
|
-
Dynamic: description
|
|
30
|
-
Dynamic: description-content-type
|
|
31
|
-
Dynamic: home-page
|
|
32
|
-
Dynamic: license
|
|
33
|
-
Dynamic: license-file
|
|
34
|
-
Dynamic: provides-extra
|
|
35
|
-
Dynamic: requires-dist
|
|
36
|
-
Dynamic: summary
|
|
37
|
-
|
|
38
|
-
Kitconc 3.4.3
|
|
1
|
+
Kitconc 3.5.0
|
|
39
2
|
=============
|
|
40
3
|
|
|
41
4
|
Kitconc is a package for Corpus Linguistics and text analysis with Python.
|
|
@@ -52,32 +15,31 @@ It contains, among other things, tools for creating:
|
|
|
52
15
|
* Semantic search with sentence embeddings.
|
|
53
16
|
|
|
54
17
|
The package is built on top of platforms and packages for scientific research:
|
|
55
|
-
numpy, pandas,
|
|
18
|
+
numpy, pandas, XlsxWriter and matplotlib. Corpus tokenization and tagging use built-in dependency-free components.
|
|
56
19
|
|
|
57
20
|
Requirements
|
|
58
21
|
============
|
|
59
22
|
|
|
60
23
|
Kitconc requires Python 3.10 or later.
|
|
61
24
|
|
|
62
|
-
|
|
25
|
+
Core dependencies (managed by uv):
|
|
63
26
|
|
|
64
27
|
numpy>=1.26.4,<2.0.0
|
|
65
28
|
pandas>=2.2.0,<3.0.0
|
|
66
29
|
matplotlib>=3.7.0,<4.0.0
|
|
67
30
|
xlsxwriter>=3.2.3,<4.0.0
|
|
68
31
|
ttkbootstrap>=1.12.0,<2.0.0
|
|
69
|
-
pillow>=
|
|
32
|
+
pillow>=12.3.0,<13.0.0
|
|
70
33
|
requests>=2.31.0,<3.0.0
|
|
71
|
-
nltk>=3.9.1,<4.0.0
|
|
72
34
|
chardet>=5.2.0,<6.0.0
|
|
73
35
|
pypdf>=4.0.0,<7.0.0
|
|
74
|
-
cryptography>=
|
|
36
|
+
cryptography>=50.0.0,<51.0.0
|
|
75
37
|
mcp>=1.0.0,<2.0.0
|
|
76
38
|
setuptools>=70.0.0
|
|
77
39
|
|
|
78
|
-
|
|
40
|
+
Optional full dependencies (embeddings, API and local environment):
|
|
79
41
|
|
|
80
|
-
torch>=2.6,<2.10 (CPU wheels
|
|
42
|
+
torch>=2.6,<2.10 (CPU wheels from the configured pytorch-cpu uv index)
|
|
81
43
|
transformers>=4.45,<6.0.0
|
|
82
44
|
sentence-transformers>=3.0,<6.0.0
|
|
83
45
|
sqlite-vec>=0.1.7,<1.0.0
|
|
@@ -85,16 +47,29 @@ fastapi>=0.110,<1.0.0
|
|
|
85
47
|
uvicorn[standard]>=0.27,<1.0.0
|
|
86
48
|
python-dotenv>=1.0.0,<2.0.0
|
|
87
49
|
|
|
88
|
-
Installation
|
|
89
|
-
|
|
50
|
+
Installation with uv
|
|
51
|
+
====================
|
|
52
|
+
|
|
53
|
+
uv sync
|
|
54
|
+
|
|
55
|
+
For the complete local environment:
|
|
90
56
|
|
|
91
|
-
|
|
57
|
+
uv sync --all-extras
|
|
58
|
+
|
|
59
|
+
Run commands with uv run, for example:
|
|
60
|
+
|
|
61
|
+
uv run kitconc-mcp --transport stdio
|
|
62
|
+
uv run pytest
|
|
92
63
|
|
|
93
64
|
Kitconc App (graphical interface)
|
|
94
65
|
=================================
|
|
95
66
|
|
|
96
67
|
kitconc-app
|
|
97
68
|
|
|
69
|
+
The desktop app continues to use the filesystem workspace format (info.tab, corpus indexes, and output files). Corpus creation accepts source folders whose paths contain spaces. Corpus names may contain letters, numbers, underscores, dots, and hyphens, except . and ..
|
|
70
|
+
|
|
71
|
+
ZIP imports are validated and will not replace a corpus already present in the workspace. The default maximum expanded archive size is 2 GiB (KITCONC_MAX_IMPORT_BYTES); URL imports are limited to 512 MiB by default (KITCONC_MAX_DOWNLOAD_BYTES). Export creates or atomically replaces <corpus>.zip in the selected destination and continues to exclude Excel result files.
|
|
72
|
+
|
|
98
73
|
Agent Layer (internal actions)
|
|
99
74
|
==============================
|
|
100
75
|
|
|
@@ -127,11 +102,39 @@ or (legacy SSE):
|
|
|
127
102
|
|
|
128
103
|
kitconc-mcp --transport sse --host 127.0.0.1 --port 8001
|
|
129
104
|
|
|
130
|
-
|
|
131
|
-
|
|
105
|
+
Semantic MCP tools::
|
|
106
|
+
|
|
107
|
+
semantic_index_status (corpus_name, db_path)
|
|
108
|
+
index_corpus (corpus_name, source_folder, db_path, model_name, chunk_size,
|
|
109
|
+
chunk_overlap, batch_size, rebuild)
|
|
110
|
+
semantic_search (query, top_k, db_path, model_name, corpus_name)
|
|
111
|
+
export_analysis_result (analysis_result, output_path, sheet_name)
|
|
112
|
+
|
|
113
|
+
Use index_corpus to create a per-corpus semantic index from TXT, Markdown,
|
|
114
|
+
RST, and PDF files in the source folder recorded in info.tab. Set source_folder
|
|
115
|
+
when that original path is unavailable. The index is stored under
|
|
116
|
+
<workspace>/.semantic_indexes/<corpus>.sqlite3. Existing indexes are retained
|
|
117
|
+
unless rebuild=True is requested. Then call semantic_search, optionally after
|
|
118
|
+
selecting the corpus with actions.use("name").
|
|
119
|
+
|
|
120
|
+
Install optional embedding dependencies with:
|
|
121
|
+
uv sync --extra full
|
|
122
|
+
|
|
123
|
+
To save an analysis result, pass its complete response object to
|
|
124
|
+
export_analysis_result and set output_path to a filename ending in .tab,
|
|
125
|
+
.tsv, or .xlsx. Only the response's rows are written; metadata such as total
|
|
126
|
+
is not exported. TAB and TSV files are UTF-8 tab-delimited; XLSX accepts an
|
|
127
|
+
optional sheet_name (1-31 characters; invalid characters: ``[]:*?/\\``). Files are written
|
|
128
|
+
atomically and replace an existing destination only after a successful
|
|
129
|
+
export. Parent directories are created when needed. The result reports the
|
|
130
|
+
resolved output_path, format, rows_written, and columns_written.
|
|
131
|
+
|
|
132
|
+
Example: pass the complete result from wordlist(corpus_name="ads") as
|
|
133
|
+
analysis_result, with output_path="C:/exports/wordlist.xlsx" and
|
|
134
|
+
sheet_name="Wordlist".
|
|
132
135
|
|
|
133
136
|
MCP runtime is included in package dependencies
|
|
134
|
-
(
|
|
137
|
+
(uv sync is enough).
|
|
135
138
|
|
|
136
139
|
What's new in 3.2.0
|
|
137
140
|
====================
|
|
@@ -141,6 +144,7 @@ What's new in 3.2.0
|
|
|
141
144
|
* Typed schemas -- available in kitconc.agent.schemas
|
|
142
145
|
* MCP server entrypoint -- run with kitconc-mcp
|
|
143
146
|
* Semantic search MCP tool -- semantic_search for sqlite-vec indexes
|
|
147
|
+
* MCP tools to build per-corpus embedding indexes and inspect index status
|
|
144
148
|
* Embedding index hardening -- transactional writes and thread-safe SQLite access
|
|
145
149
|
* Progress flag rename -- use verbose=True (replacing show_progress=True)
|
|
146
150
|
|
|
@@ -32,7 +32,7 @@ import sqlite3
|
|
|
32
32
|
import threading
|
|
33
33
|
import numpy as np
|
|
34
34
|
|
|
35
|
-
import sqlite_vec #
|
|
35
|
+
import sqlite_vec # provided by the optional full uv extra
|
|
36
36
|
from sentence_transformers import SentenceTransformer
|
|
37
37
|
from dotenv import load_dotenv, find_dotenv
|
|
38
38
|
|