This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Jerome Martinez | |
# N-Gram parser | |
# November, 10, 2011 | |
# run through command line: | |
# arguments: <input_file_name> <output_file_name> <n-gram_count> | |
# (optional) arguments: <input_file_name> --verbose <n-gram_count> | |
# outputs the n-gram as a dictionary | |
# of keys and values where the key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pprint import pprint | |
import re, sys, unicodedata | |
from django.utils import simplejson | |
from google.appengine.ext import webapp | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
from google.appengine.ext import db | |
from DataModels import Crisis, Organization, Person | |
class SearchResults(webapp.RequestHandler): | |
def get(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(program graph1 (progn output) | |
(progn (:= i 0) | |
(label 1) | |
(if (<= i 32) | |
(progn (:= x (* 6.250000e-02 | |
(float i))) | |
(:= y (* (funcall exp (- x)) | |
(funcall sin (* 6.283180e+00 | |
x)))) | |
(:= n (+ (funcall round (* 3.200000e+01 |
NewerOlder