Python Forum
FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles
#8
after apply the abs path it return another error

X = pd.read_csv("D:\Clustering\text-cluster-master\text-cluster-master", index_col='id')
X.head()
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('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 463, in _read return parser.read(nrows) File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\parsers.py", line 1052, in read index, columns, col_dict = self._engine.read(nrows) File "D:\Python3.8.0\Python\lib\site-packages\pandas\io\parsers.py", line 2056, in read data = self._reader.read(nrows) File "pandas\_libs\parsers.pyx", line 756, in pandas._libs.parsers.TextReader.read File "pandas\_libs\parsers.pyx", line 771, in pandas._libs.parsers.TextReader._read_low_memory File "pandas\_libs\parsers.pyx", line 827, in pandas._libs.parsers.TextReader._read_rows File "pandas\_libs\parsers.pyx", line 814, in pandas._libs.parsers.TextReader._tokenize_rows File "pandas\_libs\parsers.pyx", line 1951, in pandas._libs.parsers.raise_parser_error pandas.errors.ParserError: Error tokenizing data. C error: Expected 9 fields in line 4, saw 10
Reply


Messages In This Thread
RE: FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles - by Anldra12 - Jun-11-2021, 03:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help seeking for prediction of fixed effect model gotodockforevildragon 1 196 Jun-23-2024, 08:09 AM
Last Post: johnthomson112
  "[Errno 2] No such file or directory" (.py file) IbrahimBennani 13 814 Jun-17-2024, 12:26 AM
Last Post: AdamHensley
  speed up getting embedding from bert model for large set of text veda 7 488 May-27-2024, 08:28 AM
Last Post: Pedroski55
  Error (Errno 2), File upload with the Flask framework and a public IP Username_Python1 0 452 Mar-28-2024, 01:46 PM
Last Post: Username_Python1
  model.fit and model.predict errors hatflyer 6 1,756 Nov-10-2023, 01:39 AM
Last Post: hatflyer
  Modify an Energy Model to account for year dependent interest rate rather than only t giovanniandrean 0 507 Oct-10-2023, 07:00 AM
Last Post: giovanniandrean
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,806 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  Using pyinstaller with .ui GUI files - No such file or directory error diver999 3 4,003 Jun-27-2023, 01:17 PM
Last Post: diver999
  Extract file only (without a directory it is in) from ZIPIP tester_V 1 1,215 Jan-23-2023, 04:56 AM
Last Post: deanhystad
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,273 Dec-15-2022, 04:32 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020