Releases: jboynyc/textnets
Releases · jboynyc/textnets
Textnets version 0.8.4
- Updates to spaCy 3.4.1,
igraph
0.10.1, andleidenalg
0.9. - Adds Ukrainian language code.
- Improves type checking.
Textnets version 0.8.3
- Updates to spaCy 3.4, bringing support for Croatian to textnets.
- Updates various other dependencies.
- Adds optional dependency for experimental Formal Concept Analysis features. To install, run
pip install textnets[fca]
. Graphviz must also be installed separately for lattice visualization purposes.
Textnets version 0.8.2
- Makes
TextnetBase
an abstract base class, since it is not meant to be instantiated. Implements separate graph partition methods for the classesTextnet
andProjectedTextnet
to work around an occasional bug. - Adds Finnish and Swedish language codes.
- Improves type hints.
- Adds dark mode to docs!
Textnets version 0.8.1
- Fix bug #36.
- Updates dependencies, including
igraph
and spaCy.
Textnets version 0.8.0
- This release removes Python 3.7 compatibility. You now need to use Python 3.8, 3.9 or 3.10 to use
textnets
. - Fixes a bug in the HTML representation of the top-level module.
- Updates dependencies, including spaCy.
Textnets version 0.7.1
- Fixes #35 (invisible edges when scaling by weight).
- Updates some dependencies.
Textnets version 0.7.0
- Adds abilitiy to save and load an instance of
Corpus
,Textnet
andparams
to and from file usingCorpus.save
,tn.load_corpus
,
Textnet.save
,tn.load_textnet
,tn.params.save
andtn.params.load
. The same file can be used for all three kinds of objects, so all relevant data for a project can be saved in one file. - Some further optimization of backbone extraction.
- Adds bipartite centrality measures (HITS, CoHITS and BiRank) and a bipartite clustering coefficient.
- Improved testing and type hints.
- Expanded documentation with advanced topics, including the new save/load feature and interacting with other libraries for network analysis and machine learning. Docs now use the PyData theme.
- Improvements to visualization. When plotting, nodes and edges can now be scaled by any attribute.
- Breaking change: Term weighing now happens in the
corpus
submodule, so thesublinear
argument has to be passed to the methods for term extraction (tokenized
,noun_phrases
andngrams
). This change will make it easier to add additional term extraction and weighing options. - Adds
tn.init_seed()
utility to quickly initialize pseudorandom number generator. - Adds Python 3.10 compatibility.
- Updates dependencies, including
igraph
with some relevant upstream changes contributed by yours truly, as well as spaCy.
Textnets version 0.6.0
- Adds
params
as a container for global parameters. This makes it possible to fix the random seed and to change the resolution parameter for the community detection algorithm, among others. If the parameterautodownload
is set to true, textnets will attempt to download all required spaCy language models automatically. - Added HTML representation for the root module that displays versions of key dependencies.
- Added back string representations of
Corpus
andTextnetBase
-derived classes. - Adds a
Corpus.from_dict
method. Corpus
now exposes thelang
attribute, so the corpus language can be set after initialization of a class instance.- The bipartite layout optionally used by
Textnet.plot
is now horizontal, so node types are arranged in columns rather than rows. That way node labels are less likely to overlap. - Adds
label_nodes
argument to theTextnet.plot
method to label both types of nodes. Defaults toFalse
. - Adds
node_opacity
andedge_opacity
arguments forTextnet.plot
. - Makes polygons marking clusters more visually appealing by adding opacity.
- Probably fixes a bug that would occasionally result in an exception being raised during plotting (
IndexError: color index too large
). - When initializing an instance of the
Textnet
class, you can now optionally pass the argumentconnected=True
, in which case only the largest component of the underlying network is kept. When creating a one-mode projection usingTextnet.project
, aconnected
argument can also be passed. - Adds
TextnetBase.save_graph
to save the underlying graph (for instance, for further processing in Gephi). - Improved and extended documentation and docstrings.
- Update dependencies.
Textnets version 0.5.4
This release is an attempt to fix the cross-platform build and deploy pipeline (to ensure binary wheels for all platforms are uploaded to PyPI). Otherwise, there is no substantive change from previous release.
Textnets version 0.5.3
- Adds Catalan, Macedonian and Russian language models.
- Significantly speeds up backbone extraction by implementing the disparity filter integrand in Cython. (If the compiled extension
cannot be loaded for some reason, it falls back on an interpreted function.) - PyPI should now receive binary wheels for Mac, Windows and Linux (via GitHub Actions) to ease installation on each platform.
- Improved type annotations.
- Update several dependencies.