You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added entity relationship detection for EDSNLP. This implementation includes various updates and changes to the existing structure to support relationship detection and management within the EDSNLP framework.
Checklist
If this PR is a bug fix, the bug is documented in the test suite.
Changes were documented in the changelog (pending section).
If necessary, changes were made to the documentation (eg new pipeline).
if not consultation_mention:
- consultation_mention = []
elif consultation_mention is True:
48
2
0
95.83%
edsnlp/pipes/core/normalizer/__init__.py
Was already missing at line 7
def excluded_or_space_getter(t):
- return t.is_space or t.tag_ == "EXCLUDED"
5
1
0
80.00%
edsnlp/pipes/core/endlines/endlines.py
Was already missing at lines 151-155
if end_lines_model is None:
- path = build_path(__file__, "base_model.pkl")-- with open(path, "rb") as inp:- self.model = pickle.load(inp)
elif isinstance(end_lines_model, str):
if isinstance(v, list):
- assert (- len(v) == 2- ), "`window` should be a tuple/list of two integer, or a single integer"- v = tuple(v)
if isinstance(v, int):
if assigned is None:
- continue
if replace_entity:
143
2
0
98.60%
edsnlp/patch_spacy.py
Was already missing at lines 67-69
# if module is reloaded.
- existing_func = registry.factories.get(internal_name)- if not util.is_same_func(factory_func, existing_func):
raise ValueError(
31
2
0
93.55%
edsnlp/optimization.py
Was already missing at line 32
def param_groups(self, value):
- self.optim.param_groups = value
Was already missing at line 36
def state(self):
- return self.optim.state
Was already missing at line 40
def state(self, value):
- self.optim.state = value
Was already missing at line 89
def __init__(self, groups):
- self.param_groups = groups
77
4
0
94.81%
edsnlp/matchers/simstring.py
Was already missing at line 280
if custom:
- attr = attr[1:].lower()
Was already missing at line 295
if custom:
- token_text = getattr(token._, attr)
else:
146
2
0
98.63%
edsnlp/language.py
Was already missing at line 103
if last != begin:
- logger.warning(
"Missed some characters during"
if isinstance(converter, type) or kwargs_to_init:
- return converter(**kwargs), {}
return converter, validate_kwargs(converter, kwargs)
237
1
0
99.58%
edsnlp/data/base.py
Was already missing at lines 174-180
"""
- data = LazyCollection.ensure_lazy(data)- if converter:- converter, kwargs = get_doc2dict_converter(converter, kwargs)- data = data.map(converter, kwargs=kwargs)-- return data
39
5
0
87.18%
edsnlp/core/torch_component.py
Was already missing at line 390
if hasattr(self, "compiled"):
- res = self.compiled(batch)
else:
Was already missing at line 436
"""
- return self.preprocess(doc)
179
2
0
98.88%
edsnlp/core/registries.py
Was already missing at line 78
if obj.error is not None:
- raise obj.error
164
1
0
99.39%
edsnlp/core/pipeline.py
Was already missing at line 552
if name in exclude:
- continue
if name not in components:
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added entity relationship detection for EDSNLP
Description
Added entity relationship detection for EDSNLP. This implementation includes various updates and changes to the existing structure to support relationship detection and management within the EDSNLP framework.
Checklist