Skip to content

Commit

Permalink
Update terrier-index-api.rst - syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald authored Oct 30, 2024
1 parent 75d53f7 commit 0fb1486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/terrier-index-api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ We can iterate over a Lexicon. Like calling the ``iterator()`` method of
`Lexicon <http://terrier.org/docs/current/javadoc/org/terrier/structures/Lexicon.html>`_,
in Java, each iteration obtains a ``Map.Entry<String,LexiconEntry>``. This can be decoded,
so we can iterate over each term and LexiconEntry (which provides access to the statistics
of each term) contained within the Lexicon.
of each term) contained within the Lexicon::

for term, le in index.getLexicon():
print(term)
Expand Down

0 comments on commit 0fb1486

Please sign in to comment.