Django Help | Counting word frequency in Django using dictionary.

20 wyświetleń
Przejdź do pierwszej nieodczytanej wiadomości

DJANGO DEVELOPER

nieprzeczytany,
6 lip 2021, 20:35:346.07.2021
do Django users
Hi
 I am developing a django project and I want to count word frequency at the django admin side.
Means a word is repeating in a string should be counted and be saved in the database only.
I have managed to do it on front-end side but now I also want to do it on django admin side.
example: any_string = {'word1': 12,'word2': 29}
this the example because I want to get the data this way. word1 is there for 12 times in a string and same is the case for word2.
so I need help and your help would be appreciated.
thanks.

Lalit Suthar

nieprzeczytany,
7 lip 2021, 00:10:027.07.2021
do django...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/672d9b02-382e-4b79-bcaf-6b618b514c28n%40googlegroups.com.

DJANGO DEVELOPER

nieprzeczytany,
7 lip 2021, 00:59:147.07.2021
do Django users
I am using sqlite3. so only needs to store the data in django admin/database but in the form of dictionary or in the form of counted words.

Lalit Suthar

nieprzeczytany,
7 lip 2021, 07:45:217.07.2021
do django...@googlegroups.com
you can try moving to postgres if possible

Odpowiedz wszystkim
Odpowiedz autorowi
Przekaż
Nowe wiadomości: 0