~kenneth-arnold/luminoso/divisi2-port

« back to all changes in this revision

Viewing changes to luminoso/study.py

  • Committer: Robert Speer
  • Date: 2010-02-24 21:03:39 UTC
  • Revision ID: rspeer@new-caledonia.media.mit.edu-20100224210339-3fha4qwfh0lkfp1i
making the mac build work better

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
import chardet
13
13
logger = logging.getLogger('luminoso')
14
14
 
15
 
from csc.nl import get_nl
 
15
from standalone_nlp.lang_en import nltools as en_nl
16
16
from csc.util.persist import get_picklecached_thing
17
17
from csc.divisi.labeled_view import make_sparse_labeled_tensor, LabeledView
18
18
from csc.divisi.ordered_set import OrderedSet
29
29
except ImportError:
30
30
    import simplejson as json
31
31
 
32
 
en_nl = get_nl('en')
33
 
 
34
32
NEGATION = ['no', 'not', 'never', 'stop', 'lack', "n't"]
35
33
PUNCTUATION = ['.', ',', '!', '?', '...', '-']
36
34
def extract_concepts_with_negation(text):