Skip to content

Commit 4faf5df

Browse files
committed
Merge pull request #43 from fhasanaj/RCB-385_deprecate_linked_entities
Changed linked param to resolve_entities
2 parents 07e6cfa + b41ed14 commit 4faf5df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rosette/api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,19 +700,19 @@ def morphology(self, parameters, facet=MorphologyOutput.COMPLETE):
700700
@return: A python dictionary containing the results of morphological analysis."""
701701
return EndpointCaller(self, "morphology/" + facet).call(parameters)
702702

703-
def entities(self, parameters, linked=False):
703+
def entities(self, parameters, resolve_entities=False):
704704
"""
705705
Create an L{EndpointCaller} to identify named entities found in the texts
706706
to which it is applied and call it. Linked entity information is optional, and
707707
its need must be specified at the time the operator is created.
708708
@param parameters: An object specifying the data,
709709
and possible metadata, to be processed by the entity identifier.
710710
@type parameters: L{DocumentParameters} or L{str}
711-
@param linked: Specifies whether or not linked entity information will
711+
@param resolve_entities: Specifies whether or not linked entity information will
712712
be wanted.
713-
@type linked: Boolean
713+
@type resolve_entities: Boolean
714714
@return: A python dictionary containing the results of entity extraction."""
715-
if linked:
715+
if resolve_entities:
716716
return EndpointCaller(self, "entities/linked").call(parameters)
717717
else:
718718
return EndpointCaller(self, "entities").call(parameters)

0 commit comments

Comments
 (0)