                |     else:
                |         lexeme.shape_ = 'M'
                | assert token.shape_ == 'W'
  
          +example("Export to numpy arrays")
            pre.language-python
              code
                | Do me
  
          +example("Word vectors")
            pre.language-python
              code
                | Do me
 
</s> remove         +example("Get and set string views and flags")
          pre.language-python
            code
              | assert token.shape_ == 'Xxxx'
              | for lexeme in nlp.vocab:
              |     if lexeme.is_alpha:
              |         lexeme.shape_ = 'W'
              |     elif lexeme.is_digit:
              |         lexeme.shape_ = 'D'
              |     elif lexeme.is_punct:
              |         lexeme.shape_ = 'P'
              |     else:
              |         lexeme.shape_ = 'M'
              | assert token.shape_ == 'W'
 </s> add     div.discuss
      a(href="#" title="Discuss on Hacker News" rel="nofollow" class="button button-hn")
        | Discuss on Hacker News </s> remove         +example("Word vectors")
          pre.language-python
            code
              | Do me
 </s> add  </s> remove doctype html
html(lang="en")
  head
    meta(charset="utf-8")
    title!= tag_line
    meta(name="description" content="")
    meta(name="author" content="Matthew Honnibal")
    link(rel="stylesheet" href="css/style.css")
    <!--[if lt IE 9]>
    script(src="http://html5shiv.googlecode.com/svn/trunk/html5.js")
    <![endif]-->

  body(id="page" role="document")
    header(role="banner")
      h1(class="logo")!= tag_line
      div(class="slogan")!= slogan

    nav(role="navigation")
      ul
        li: a(href="#") Home
        li: a(href="#") Docs
        li: a(href="#") License
        li: a(href="#") Blog

    main(id="content" role="main")
      section(class="intro")
        +lede

        nav(role="navigation")
          ul
            li: a(href="#overview" class="button") Examples
            li: a(href="#overview" class="button") Comparisons
            li: a(href="#example-use" class="button") Demo
            li: a(href="#get-started" class="button") Install

      article(class="page landing-page")
        a(name="example-use"): h3 Usage by Example

        +example("Load resources and process text")
          pre.language-python
            code
              | from __future__ import unicode_literals, print_function
              | from spacy.en import English
              | nlp = English()
              | doc = nlp('Hello, world. Here are two sentences.')

        +example("Get tokens and sentences")
          pre.language-python
            code
              | token = doc[0]
              | sentence = doc.sents[0]
              | assert token[0] is sentence[0]

        +example("Use integer IDs for any string")
          pre.language-python
            code
              | hello_id = nlp.vocab.strings['Hello']
              | hello_str = nlp.vocab.strings[hello_id]
              | 
              | assert token.orth == hello_id == 52
              | assert token.orth_ == hello_str == 'Hello'
 </s> add mixin social      
  footer(role="contentinfo")
    a(href="http://twitter.com/share?text=[ARTICLE HEADLINE]&url=[ARTICLE LINK]&via=honnibal" title="Share on Twitter" rel="nofollow" class="button button-twitter") Share on Twitter </s> remove         +example("Syntactic dependencies")
          pre.language-python
            code
              | Do me
 </s> add   if (link_name == "example-use")
    include ./usage_examples.jade
  else if (link_name == "online-demo")
    include ./online_demo.jade
  else if (link_name == "comparisons")
    include ./comparisons.jade
  else if (link_name == "install")
    include ./installation.jade </s> remove         +example("Named entities")
          pre.language-python
            code
              | Do me
 </s> add 
      a(href="#" title="Discuss on Reddit" rel="nofollow" class="button button-reddit")
        | Discuss on Reddit
                |     else:
                |         lexeme.shape_ = 'M'
                | assert token.shape_ == 'W'
  
      a(href="#" title="Discuss on Reddit" rel="nofollow" class="button button-reddit")
        | Discuss on Reddit
      a(href="#" title="Discuss on Reddit" rel="nofollow" class="button button-reddit")
        | Discuss on Reddit
      a(href="#" title="Discuss on Reddit" rel="nofollow" class="button button-reddit")
        | Discuss on Reddit
      a(href="#" title="Discuss on Reddit" rel="nofollow" class="button button-reddit")
        | Discuss on Reddit
  
          +example("Word vectors")
            pre.language-python
              code
                | Do me
keep keep keep keep replace replace replace replace keep keep keep keep keep
 * More work on docs 
docs/redesign/spacy_home.jade