Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

English dictionary xml/csv file [closed]

Does anyone know where I can get a dump of an English dictionary in XML, TXT, CSV format, or something that is easily parseable. I don't need a full dictionary, but I do need individual words and whether each a word is a noun or verb etc.

Anyone knows a location for such a thing?

Thanks.

like image 394
Jack Avatar asked Dec 19 '10 02:12

Jack


People also ask

How do I store a dictionary in csv?

Easiest way is to open a csv file in 'w' mode with the help of open() function and write key value pair in comma separated form. The csv module contains DictWriter method that requires name of csv file to write and a list object containing field names.

How do I write a dictionary in a csv file?

To write a dictionary of list to CSV files, the necessary functions are csv. writer(), csv. writerow(). This method writes a single row at a time.

What class can be used to map dictionaries into csv rows?

DictWriter class and uses two of its following methods: DictWriter. writeheader() is used to write a row of column headings / field names to the given CSV file.


1 Answers

Check this.

http://www.mso.anu.edu.au/~ralph/OPTED/

It is the plain text file which can be easily parsed.

It not wordy but very structured.

If you want to extract words and put them into your DB, it is must-check.

like image 66
ghchoi Avatar answered Sep 23 '22 08:09

ghchoi