帮酷LOGO
  • 显示原文与译文双语对照的内容
文章标签:FUNC  Readability  COL  函数  TEX  collection  Measure  functions  
a collection of functions that measure the readability of a given body of text

  • 源代碼名稱:readability
  • 源代碼網址:http://www.github.com/mmautner/readability
  • readability源代碼文檔
  • readability源代碼下載
  • Git URL:
    git://www.github.com/mmautner/readability.git
  • Git Clone代碼到本地:
    git clone http://www.github.com/mmautner/readability
  • Subversion代碼到本地:
    $ svn co --depth empty http://www.github.com/mmautner/readability
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
  • 用來測量給定正文的可讀性的函數集合。 我建議核對一下維基百科文章below--most的評估級別所需的級別級別。

    要啟動並運行,需要 ,並且需要punkt數據集:

    shell$ pip install nltk
    shell$ python
    >>import nltk
    >>nltk.download('punkt')

    演示:

    shell$ python readability.py
    Test text:
    "We are close to wrapping up our 10 week Rails Course. This week we will cover a handful of topics commonly encountered in Rails projects. We then wrap up with part 2 of our Reddit on Rails exercise! By now you should be hard at work on your personal projects. The students in the course just presented in front of the class with some live demos and a brief intro to to the problems their app were solving. Maybe set aside some time this week to show someone your progress, block off 5 minutes and describe what goal you are working towards, the current state of the project (is it almost done, just getting started, needs UI, etc.), and then show them a quick demo of the app. Explain what type of feedback you are looking for (conceptual, design, usability, etc.) and see what they have to say. As we are wrapping up the course you need to be focused on learning as much as you can, but also making sure you have the tools to succeed after the class is over."
    ARI: 7.2164516129
    FleschReadingEase: 88.9553
    FleschKincaidGradeLevel: 5.3235
    GunningFogIndex: 9.1355
    SMOGIndex: 8.19615242271
    ColemanLiauIndex: 6.7804
    LIX: 35.2666666667
    RIX: 3.1

    readability.py 中包含以下可讀性度量指標:

    從以下方面大幅提升:

    https://github.com/nltk/nltk_contrib/tree/master/nltk_contrib/readability

    煙霧指數表現得最準確。



    文章标签:COL  文本  TEX  Collect  FUNC  函数  collection  functions  

    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语