renard-pipeline 0.6.1__tar.gz → 0.6.3__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.
Potentially problematic release.
This version of renard-pipeline might be problematic. Click here for more details.
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/PKG-INFO +2 -8
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/pyproject.toml +2 -12
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/graph_utils.py +9 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/graph_extraction.py +5 -2
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/stanford_corenlp.py +1 -1
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/LICENSE +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/README.md +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/gender.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/ner_utils.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/nltk_utils.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/__init__.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/character_unification.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/characters_extraction.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/core.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/corefs/__init__.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/corefs/corefs.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/ner/__init__.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/ner/ner.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/ner/retrieval.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/preconfigured.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/preprocessing.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/progress.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/quote_detection.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/sentiment_analysis.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/speaker_attribution.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/pipeline/tokenization.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/plot_utils.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/py.typed +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/determiners/__init__.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/determiners/determiners.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/hypocorisms/__init__.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/hypocorisms/datas/License.txt +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/hypocorisms/datas/hypocorisms.csv +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/hypocorisms/hypocorisms.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/pronouns/__init__.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/pronouns/pronouns.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/titles/__init__.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/titles/titles.py +0 -0
- {renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: renard-pipeline
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: Relationships Extraction from NARrative Documents
|
|
5
5
|
Home-page: https://github.com/CompNet/Renard
|
|
6
6
|
License: GPL-3.0-only
|
|
@@ -13,9 +13,6 @@ Classifier: Programming Language :: Python :: 3.8
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Provides-Extra: spacy
|
|
17
|
-
Provides-Extra: stanza
|
|
18
|
-
Requires-Dist: coreferee (>=1.4,<2.0) ; extra == "spacy"
|
|
19
16
|
Requires-Dist: datasets (>=3.0,<4.0)
|
|
20
17
|
Requires-Dist: grimbert (>=0.1,<0.2)
|
|
21
18
|
Requires-Dist: matplotlib (>=3.5,<4.0)
|
|
@@ -26,13 +23,10 @@ Requires-Dist: nltk (>=3.9,<4.0)
|
|
|
26
23
|
Requires-Dist: pandas (>=2.0,<3.0)
|
|
27
24
|
Requires-Dist: pytest (>=8.3.0,<9.0.0)
|
|
28
25
|
Requires-Dist: rank-bm25 (>=0.2.2,<0.3.0)
|
|
29
|
-
Requires-Dist: spacy (>=3.5,<4.0) ; extra == "spacy"
|
|
30
|
-
Requires-Dist: spacy-transformers (>=1.3,<2.0) ; extra == "spacy"
|
|
31
|
-
Requires-Dist: stanza (>=1.3,<2.0) ; extra == "stanza"
|
|
32
26
|
Requires-Dist: tibert (>=0.5,<0.6)
|
|
33
27
|
Requires-Dist: torch (>=2.0.0,!=2.0.1)
|
|
34
28
|
Requires-Dist: tqdm (>=4.62.3,<5.0.0)
|
|
35
|
-
Requires-Dist: transformers (>=4.
|
|
29
|
+
Requires-Dist: transformers (>=4.37,<5.0)
|
|
36
30
|
Project-URL: Documentation, https://compnet.github.io/Renard/
|
|
37
31
|
Project-URL: Repository, https://github.com/CompNet/Renard
|
|
38
32
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "renard-pipeline"
|
|
3
|
-
version = "0.6.
|
|
3
|
+
version = "0.6.3"
|
|
4
4
|
description = "Relationships Extraction from NARrative Documents"
|
|
5
5
|
authors = ["Arthur Amalvy <arthur.amalvy@univ-avignon.fr>"]
|
|
6
6
|
license = "GPL-3.0-only"
|
|
@@ -13,15 +13,9 @@ repository = "https://github.com/CompNet/Renard"
|
|
|
13
13
|
documentation = "https://compnet.github.io/Renard/"
|
|
14
14
|
|
|
15
15
|
[tool.poetry.dependencies]
|
|
16
|
-
# optional dependencies
|
|
17
|
-
stanza = { version = "^1.3", optional = true }
|
|
18
|
-
spacy = { version = "^3.5", optional = true }
|
|
19
|
-
coreferee = { version = "^1.4", optional = true }
|
|
20
|
-
spacy-transformers = {version = "^1.3", optional = true}
|
|
21
|
-
# required dependencies
|
|
22
16
|
python = "^3.8,<3.12"
|
|
23
17
|
torch = ">=2.0.0, !=2.0.1"
|
|
24
|
-
transformers = "^4.
|
|
18
|
+
transformers = "^4.37"
|
|
25
19
|
nltk = "^3.9"
|
|
26
20
|
tqdm = "^4.62.3"
|
|
27
21
|
networkx = "^3.0"
|
|
@@ -41,10 +35,6 @@ Sphinx = "^4.3.1"
|
|
|
41
35
|
sphinx-rtd-theme = "^1.0.0"
|
|
42
36
|
sphinx-autodoc-typehints = "^1.12.0"
|
|
43
37
|
|
|
44
|
-
[tool.poetry.extras]
|
|
45
|
-
stanza = ["stanza"]
|
|
46
|
-
spacy = ["spacy", "coreferee", "spacy-transformers"]
|
|
47
|
-
|
|
48
38
|
[build-system]
|
|
49
39
|
requires = ["poetry-core>=1.0.0"]
|
|
50
40
|
build-backend = "poetry.core.masonry.api"
|
|
@@ -124,6 +124,15 @@ def dynamic_graph_to_gephi_graph(graphs: List[nx.Graph]) -> nx.Graph:
|
|
|
124
124
|
G = nx.Graph()
|
|
125
125
|
|
|
126
126
|
for H_i, H in enumerate(graphs):
|
|
127
|
+
|
|
128
|
+
# update node attributes
|
|
129
|
+
for u in H.nodes:
|
|
130
|
+
G.add_node(u)
|
|
131
|
+
for key, value in H.nodes[u].items():
|
|
132
|
+
# format : (VALUE, START, END)
|
|
133
|
+
series = G.nodes[u].get(key, [])
|
|
134
|
+
G.nodes[u][key] = series + [(value, H_i, H_i + 1)]
|
|
135
|
+
|
|
127
136
|
for u, v in H.edges:
|
|
128
137
|
# create a new edge between two characters if it doesn't
|
|
129
138
|
# exist yet
|
|
@@ -306,8 +306,11 @@ class CoOccurrencesGraphExtractor(PipelineStep):
|
|
|
306
306
|
|
|
307
307
|
# * Construct graph from co-occurence matrix
|
|
308
308
|
G = nx.Graph()
|
|
309
|
-
for character,
|
|
310
|
-
|
|
309
|
+
for character, mention in mentions:
|
|
310
|
+
# NOTE: we add an 'entity_type' attribute. This is useful
|
|
311
|
+
# when using the 'additional_ner_classes' option, to
|
|
312
|
+
# differentiate between different entity types.
|
|
313
|
+
G.add_node(character, entity_type=mention.tag)
|
|
311
314
|
|
|
312
315
|
for i, (char1, mention1) in enumerate(mentions):
|
|
313
316
|
for j, (char2, mention2) in enumerate(mentions):
|
|
@@ -72,7 +72,7 @@ class StanfordCoreNLPPipeline(PipelineStep):
|
|
|
72
72
|
.. note::
|
|
73
73
|
|
|
74
74
|
The Stanford CoreNLP pipeline requires the ``stanza`` library.
|
|
75
|
-
You can install it with poetry using ``
|
|
75
|
+
You can install it with poetry using ``pip install stanza``.
|
|
76
76
|
|
|
77
77
|
.. warning::
|
|
78
78
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/hypocorisms/datas/License.txt
RENAMED
|
File without changes
|
{renard_pipeline-0.6.1 → renard_pipeline-0.6.3}/renard/resources/hypocorisms/datas/hypocorisms.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|