Skip to content

Instantly share code, notes, and snippets.

@mudpile45
Created November 5, 2012 17:08
Show Gist options
  • Save mudpile45/4018362 to your computer and use it in GitHub Desktop.
Save mudpile45/4018362 to your computer and use it in GitHub Desktop.
Intro to CQP/CWB handout

Links

Examples / Further info

  • CQPWeb
    • Make sure to change to CQP Syntax (not Simple Query)
    • Frequency lists option available from left hand menu of each corpus
      • Two modes, by POS and by word
    • word lookup function (find a particular words type of speech)
    • Query language basics "" is shorthand for [word=""] (e.g. "好" is the same as [word="好"])
      • word= vs. pos=

      • find any verb instance of "出" (& combines two statements)

          [word="出.*"&pos="v"] []* "去" within 3;
        

        or

          [word="出.*"&pos="v"] []{0,3} "去";
        

        the []{0,3} limits the window size while []* means infinitely big as big as you want

    • [word="出..."] can be used to find compound words (the ... represents one character).
      • So, [word="出..."] will result in 出門, 出發 etc.
    • In addition to & for combinations, can also use | to do an or
      • [word="好"&pos="a"][pos="n|v"] will return any hao that is an adjective that is followed by either a noun or a verb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment