RNA2DocVec.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:rna_protein_binding 作者: wentaozhu 项目源码 文件源码
def train_tag_doc(doc1):
    docs = []
    analyzedDocument = namedtuple('AnalyzedDocument', 'words tags')
    for i, text in enumerate(doc1):
        words = text.lower().split()
        tags = [i]
        docs.append(analyzedDocument(words, tags))
        #docs.append(gensim.models.doc2vec.TaggedDocument(words, [i]))
    return doc
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号