Skip to content

Commit

Permalink
links to book in docs and bitly links in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Hobson Lane committed Nov 2, 2018
1 parent f01414d commit a3af84b
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build Status](https://travis-ci.org/totalgood/nlpia.svg?branch=master)](https://travis-ci.org/totalgood/nlpia)
[![Coverage](https://codecov.io/gh/totalgood/nlpia/branch/master/graph/badge.svg)](https://codecov.io/gh/totalgood/nlpia)
[![Build Status](https://travis-ci.org/totalgood/nlpia.svg?branch=master)](https://travis-ci.org/totalgood/nlpia)
[![Coverage](https://codecov.io/gh/totalgood/nlpia/branch/master/graph/badge.svg)](https://codecov.io/gh/totalgood/nlpia)
[![GitHub release](https://img.shields.io/github/release/totalgood/nlpia.svg)](https://github.com/totalgood/nlpia/releases/latest)
[![PyPI version](https://img.shields.io/pypi/pyversions/nlpia.svg)](https://pypi.org/project/nlpia/)
[![License](https://img.shields.io/pypi/l/nlpia.svg)](https://pypi.python.org/pypi/nlpia/)
Expand Down
1 change: 1 addition & 0 deletions docs/book
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><body><META HTTP-EQUIV="Refresh" CONTENT="0;URL=https://www.manning.com/books/natural-language-processing-in-action?a_aid=totalgood&a_bid=19bd201b"></body></html>
1 change: 1 addition & 0 deletions docs/book.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><body><META HTTP-EQUIV="Refresh" CONTENT="0;URL=https://www.manning.com/books/natural-language-processing-in-action?a_aid=totalgood&a_bid=19bd201b"></body></html>
1 change: 1 addition & 0 deletions docs/nlpiabook
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<html><body><META HTTP-EQUIV="Refresh" CONTENT="0;URL=https://www.manning.com/books/natural-language-processing-in-action?a_aid=totalgood&a_bid=19bd201b"></body></html>
13 changes: 13 additions & 0 deletions src/nlpia/book/examples/ch06.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
""" Example python snippets and listing in Chapter 6 """
import pandas as pd
import numpy as np
from nlpia.loaders import get_data

wv = get_data('word2vec')

"""
>>> answer_vector = wv['woman'] + wv['Europe'] + wv[physics'] +\
... wv['scientist']
"""

answer_vector = wv['woman'] + wv['Europe'] + wv['physics'] + wv['scientist']

0 comments on commit a3af84b

Please sign in to comment.