Skip to main content

want to read the file through machine learning, could you please help me

  • May 31, 2024 11:16 PM UTC
  • 2 replies
  • 108 views

want to read the file through machine learning, could you please help me

2 replies

muthappan.alaga
Level 8
Forum|alt.badge.img

Hi @sankarganesh.jayak12 ,

 

Can you please elaborate little more, what format of the file? are you planning to use it from Machine learning workbench using pycelonis?

 

Thanks

Muthappan


  • Jun 4, 2024 8:08 AM UTC

Hi Sankarganesh,

 

You can open file in machine learning workbench using python using the below code (nb: assuming your file is a text file).

 

#directory:  /home/imtiaz/code.py

text_file = open('file.txt','r')

 

#Another method using full location

text_file2 = open('/home/imtiaz/file.txt','r')

print('First Method')

print(text_file)

 

print('Second Method')

print(text_file2)

 

 

Thanks,

Akshay