Changeset 1840


Ignore:
Timestamp:
Feb 11, 2007 5:54:04 PM (11 years ago)
Author:
bcsaller
Message:

factored out static path

Location:
ore.haystack/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ore.haystack/trunk/README.txt

    r1830 r1840  
    2020semcor 2.1 
    2121    http://lit.csci.unt.edu/~rada/downloads/semcor/semcor2.1.tar.gz 
     22    Should be extracted to ${WNHOME}/share/semcor2.1 
     23    See below about WNHOME 
    2224 
    2325IMPORANT 
     
    3436export NLTK_LITE_CORPORA=~/Projects/nltk_lite-0.7.1/corpora 
    3537export WNHOME=/usr 
     38 
     39 
  • ore.haystack/trunk/src/ore/haystack/semcor.py

    r1830 r1840  
    66from nltk_lite.wordnet import * 
    77from sqlalchemy import * 
    8 from utils import flatcount, Toplist 
     8from utils import Toplist 
    99import logging 
    1010import lxml.etree as ET 
     
    780780 
    781781 
    782 # XXX: factor out pathing 
    783 BASEDIR = os.path.expanduser("~/My Downloads/semcor2.1/") 
    784 corpora = ['brown1', 'brown2', 'brownv'] 
    785  
    786 def build(basedir=BASEDIR, corpora=corpora): 
     782def build(): 
     783    # these are the corpora that we have semcor coverage on 
     784    BASEDIR = os.path.join(os.envion['WNHOME'], 'share/semcor2.1') 
     785    corpora = ['brown1', 'brown2', 'brownv'] 
     786 
    787787    # create the singleton instance 
    788788    p = Corpus(storable.storage_manager) 
Note: See TracChangeset for help on using the changeset viewer.