Skip to content

how to run in the system of ubantu #1

@WindHunter-Yang

Description

@WindHunter-Yang

I install spacy successfully,but it have the error --NameError: name 'spacy' is not defined
maybe the code that t2v = text2vec.text2vec(doc_list) have some problem, how to fill the doc_list

Traceback (most recent call last):
File "main.py", line 2, in
t2v = text2vec.text2vec('train/1.txt')
File "/home/steven_yang/workspace/text2vec-master/text2vec.py", line 16, in init
self.nlp, self.docs, self.docs_dict = self._preprocess(self.doc_list)
File "/home/steven_yang/workspace/text2vec-master/text2vec.py", line 38, in _preprocess
nlp = spacy.load('en')
NameError: name 'spacy' is not defined

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