Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaris committed Jul 24, 2024
1 parent 56c0e61 commit 4bcb4ea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
9 changes: 5 additions & 4 deletions gilda/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,12 @@ def annotate(
----------
text : str
The text to be annotated.
sent_split_fun : Callable, optional
sent_split_fun : Callable[str, Iterable[Tuple[int, int]]], optional
A function that splits the text into sentences. The default is
:func:`nltk.tokenize.sent_tokenize`. The function should take a string
as input and return an iterable of strings corresponding to the sentences
in the input text.
:func:`nltk.tokenize.PunktSentenceTokenizer.span_tokenize`. The function
should take a string as input and return an iterable of coordinate pairs
corresponding to the start and end coordinates for each sentence in the
input text.
organisms : list[str], optional
A list of organism names to pass to the grounder. If not provided,
human is used.
Expand Down
7 changes: 4 additions & 3 deletions gilda/ner.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ def annotate(
The Gilda grounder to use for grounding.
sent_split_fun : Callable[str, Iterable[Tuple[int, int]]], optional
A function that splits the text into sentences. The default is
:func:`nltk.tokenize.sent_tokenize`. The function should take a string
as input and return an iterable of coordinate pairs corresponding to the
start and end coordinates for each sentence in the input text.
:func:`nltk.tokenize.PunktSentenceTokenizer.span_tokenize`. The function
should take a string as input and return an iterable of coordinate pairs
corresponding to the start and end coordinates for each sentence in the
input text.
organisms : list[str], optional
A list of organism names to pass to the grounder. If not provided,
human is used.
Expand Down

0 comments on commit 4bcb4ea

Please sign in to comment.