Skip to content

Showing a constant error of the module is not callable? #2

@tamannashrma

Description

@tamannashrma

Code:
import re
import heapq
import nltk
import numpy as np
import gensim, logging
from text import text2vec
f = open("D:\dataset\mahout-0.8\mahout-0.8_Corpus.txt")
doc_list = f.read()
#doc_list = re.split("\n\n", doc1)
t2v = text2vec(doc_list)
print(t2v)
PS: text is the file which contatin code of text2vec
output:
import text2vec
File "C:\Part 1 - Data Preprocessing\Data_Preprocessing\text2vec.py", line 16, in
t2v = text2vec.text2vec(doc_list)
TypeError: 'module' object is not callable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions