Skip to content

Instantly share code, notes, and snippets.

@vanechu
vanechu / Word2Vec.c
Created March 2, 2015 06:02
Annotated Word2Vec
// Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
import numpy
import sys
import timeit
try:
import numpy.core._dotblas
print 'FAST BLAS'
except ImportError:
print 'slow blas'
# -*- coding: utf-8 -*-
import html2text
import requests
from bs4 import BeautifulSoup
class Info(object):
def __init__(self, words):
self.words = words