Skip to content

Commit

Permalink
sphinx doesn't allow custom section titles :(
Browse files Browse the repository at this point in the history
  • Loading branch information
piskvorky committed Oct 10, 2020
1 parent 4879e52 commit cc6ce47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gensim/models/phrases.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
.split()
)


def original_scorer(worda_count, wordb_count, bigram_count, len_vocab, min_count, corpus_word_count):
r"""Bigram scoring function, based on the original `Mikolov, et. al: "Distributed Representations
of Words and Phrases and their Compositionality" <https://arxiv.org/abs/1310.4546>`_.
Expand Down Expand Up @@ -463,7 +464,7 @@ def __init__(
corpus with a different concept of "words irrelevant to phrases".
Examples
----------
--------
.. sourcecode:: pycon
>>> from gensim.test.utils import datapath
Expand Down Expand Up @@ -491,8 +492,8 @@ def __init__(
>>> print(frozen_phrases[sent])
[u'trees_graph', u'minors']
Notes on collocation scoring
----------------------------
Notes
-----
The ``scoring="npmi"`` is more robust when dealing with common words that form part of common bigrams, and
ranges from -1 to 1, but is slower to calculate than the default ``scoring=="default"``.
Expand Down

0 comments on commit cc6ce47

Please sign in to comment.