2020年12月25日星期五

convert string to float array in csv using tf.data

I have a csv like this :

kw_text,kw_text_weight  amazon google,0.5 0.5  google facebook microsoft,0.5 0.3 0.2  
kw_text kw_text_weight
amazon google 0.5 0.5
google facebook microsoft 0.5 0.3 0.2

I want to convert column text_weight to tf.data . But I find nothing about it in tensorflow document website .

https://stackoverflow.com/questions/65437493/convert-string-to-float-array-in-csv-using-tf-data December 24, 2020 at 07:09PM

没有评论:

发表评论