Discussion:
[gensim:11744] Is there a way to retrieve the tags of the documents used for training a Doc2Vec model?
Alex H.
2018-11-02 18:22:04 UTC
Permalink
After I built a model, is there a way to retrieve all the tags of the
documents used for training, in the order in which they are fed into the
model? Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Gensim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gensim+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gordon Mohr
2018-11-02 18:37:51 UTC
Permalink
`model.docvecs,offset2doctag` will be a list of all non-plain-int tags
encountered during training. (Specifically, as encountered during the
pre-training corpus vocabulary/tag discovery scan.)

(If `model.docvecs.max_rawing` is greater-than -1, then some plain-int tags
were encountered as well, up to the value there.)

- Gordon
Post by Alex H.
After I built a model, is there a way to retrieve all the tags of the
documents used for training, in the order in which they are fed into the
model? Thanks in advance!
--
You received this message because you are subscribed to the Google Groups "Gensim" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gensim+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...