Hackpads are smart collaborative documents. .

Yu-Yun Chang

603 days ago
Unfiled. Edited by Yu-Yun Chang 603 days ago
  1. 目前進度: 
 
  • 文章內如出現連結則刪除
  • PTT 語料庫如何用 CWB 建立 index
  • $/usr/local/bin/cwb-encode -d  /var/local/LOPEN/corpus/CWB/data/pttnews -f /home/owen/pttnews.vrt -R  /usr/local/share/cwb/registry/pttnews -c utf8 -P pos -S  text:0+ptt_title+ptt_url+article_type+news_content+date+id+news_title+author+media+age+note+source+board+gender+news_url  -S s 
  • $/usr/local/bin/cwb-makeall -V pttnews
  • 如何在 CWN 內使用 PTT
  • $ cqp -e
  • > PTTNEWS
  • > info PTTNEWS; (查看 pttnews 的相關訊息)
  • > "豬哥亮"; (查詢"豬哥亮" concordance)
  •  
  • $ cwb-lexdecode -f -s -P lemma PTTNEWS | tail -20      (列出 frequency)
  • $ cwb-lexdecode -f -P lemma -p 'regular_expression' -c PTTNEWS  (用 regular expression 去做搜尋)
  • $ cwb-scan-corpus -C PTTNEWS lemma pos | sort -nr -k 1 | head -20  (列出前 20 名 (lemma, freq) 的 tuples)
 
 

Contact Support



Please check out our How-to Guide and FAQ first to see if your question is already answered! :)

If you have a feature request, please add it to this pad. Thanks!


Log in