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
I noticed this while reading the documentation and, assuming I was missing an obvious distinction, attempting to hand diff the the docs for the two functions. When I gave up and flipped to the source it became obvious how the two functions are related.
The text was updated successfully, but these errors were encountered:
I have no idea why we have two identical functions there. Would you be able to check the code and see which one is used where? Maybe we can keep just one? (which would solve the problem with duplicate documentation automatically)
To the uninformed eye on a first pass neither strip_punctuation nor strip_punctuation2 seem to be used widely within the library. Conceptually they seem to me to be on the user facing edge of the API so that is not surprising.
Of the two, based on the linked results, strip_punctuation has it over strip_punctuation2 2:1.
I don't know how to use any of the actual github functionality but I can try learn how to do so (assuming someone who knows doesn't deletes the line first). Thx again for the fantastic library.
Thanks for all the hard work on this fantastic library. I found a small quirk today, not really a bug, just a bit of a rough edge:
In
gensim.parsing
preprocessing.pystrip_punctuation2
is defined:strip_punctuation2 = strip_punctuation
.In the documentation the description of
strip_punctuation2
is a duplication ofstrip_punctuation
rather than a statement of equality.I noticed this while reading the documentation and, assuming I was missing an obvious distinction, attempting to hand diff the the docs for the two functions. When I gave up and flipped to the source it became obvious how the two functions are related.
The text was updated successfully, but these errors were encountered: