Jump to content
Chinese-Forums
  • Sign Up

This might be of use to application developers....


trevelyan

Recommended Posts

A simplified version of the Adso database. It comes as a single SQL table that lets one select on five fields for over 120,000 entries:

english, chinese, pinyin, flag, source

http://www.adsotrans.com/adso_english.zip

To get it working:

(1) install MySQL or a comparable database

(2) connect to it and create an empty database

mysql> CREATE DATABASE english

(3) feed the files into your new database (order is important):

mysql -u [user] -p english < adso.sql

mysql -u [user] -p english < ldc.sql

You can now search and select on any of the five categories. Part of speech information is coded in the "flag" field, and includes ADJT, ADVB, ADDRESS, AUXV, CHINESEPLACE, CITY, COUNTRY, NAME, NOUN, PERSON, PHONETIC, ORG, MW, PLACE, VERB, and more. The full list is available here: http://www.adsotrans.com/class_hierarchy.txt.

For instance:

(1) Returning the english names of Organizations

SELECT english from adso where FLAG REGEXP "ORG" and FLAG REGEXP "NOUN";

(2) Returning Measure Words

SELECT chinese from adso where FLAG REGEXP "MW";

(3) Returning Measure Words found in Roddy's HSK lists

SELECT chinese from adso where FLAG REGEXP "MW" and FLAG REGEXP "HSK";

(4) Returning Verbs found in Roddy's list for HSK level four

SELECT chinese from adso where FLAG REGEXP "VERB" and FLAG REGEXP "HSK4";

etc. etc. etc.

Link to comment
Share on other sites

Join the conversation

You can post now and select your username and password later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Click here to reply. Select text to quote.

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...