1/4/2023 0 Comments Godfather unpack .str![]() ![]() "After being on a bus for - hours and finally arriving at the Hotel Lawerence at - am, I bawled my eyes out when we got to the room. The guy that checked me in, I think his name was Julio, and his name tag read F', I stayed there a few weeks ago, and I had my doubts the second I checked in. 'I will never ever stay at this Hotel again. So, in overview it was an OK stay, and a safe', Is there a faster way of doing the same in nltk or pandas.Īrray([ 'Hotel is an old style Red Roof and has not been renovated up to the new standard, but the price was also not up to the level of the newer style Red Roofs. When I apply this on actual data for just 100 rows timeit givesĪnd I have 50000 rows. Which gives the following output based on sample keys I have a bag of words like keys = but the actual length of keys = 44312ĭf.apply(lambda x : sum()) ģ8918 We were excited about our stay at the Blu Aqua.ģ8922 This hotel has a great location if you want to. ģ8914 After being on a bus for - hours and finally. How to speed up the sum of presence of keys in the series of documents? - Pandas, nltk - python I have a dataframe column with documents likeģ8909 Hotel is an old style Red Roof and has not bee.ģ8913 I will never ever stay at this Hotel again. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |