Jun-11-2021, 09:57 AM
I make directory and sub directory in the same project to train and fit my model still get an error
FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles.csv'
FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles.csv'
Quote:
X = pd.read_csv("model/doc2vec.model/Articles.csv", index_col='id') X.head()
Quote:Overall errors
Error:D:\Python3.8.0\Python\python.exe D:/Clustering/text-cluster-master/similarity.py
Traceback (most recent call last):
File "D:/Clustering/text-cluster-master/similarity.py", line 58, in <module>
X = pd.read_csv("model/doc2vec.model/Articles.csv", index_col='id')
File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\parsers.py", line 605, in read_csv
return _read(filepath_or_buffer, kwds)
File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\parsers.py", line 457, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\parsers.py", line 814, in __init__
self._engine = self._make_engine(self.engine)
File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\parsers.py", line 1045, in _make_engine
return mapping[engine](self.f, **self.options) # type: ignore[call-arg]
File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\parsers.py", line 1862, in __init__
self._open_handles(src, kwds)
File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\parsers.py", line 1357, in _open_handles
self.handles = get_handle(
File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\common.py", line 639, in get_handle
handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles.csv'