Skip to content

Commit

Permalink
update resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Juicechuan committed May 21, 2015
1 parent 96c6c88 commit c7f3954
Show file tree
Hide file tree
Showing 10 changed files with 1,978,714 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,3 @@ smatch*/
# cache
*~
scripts/*~
wclusters*
4 changes: 2 additions & 2 deletions constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _load_rules(rule_file):
def get_fake_amr_relation_mapping(dep_rel):
return __DEP_AMR_REL_TABLE[dep_rel]

DEFAULT_NOM_FILE = './data/nombank-dict.1.0'
DEFAULT_NOM_FILE = './resources/nombank-dict.1.0'

def _read_nom_list(nombank_dict_file):
nomdict = open(nombank_dict_file,'r')
Expand All @@ -190,7 +190,7 @@ def _read_nom_list(nombank_dict_file):

NOMLIST = _read_nom_list(DEFAULT_NOM_FILE)

DEFAULT_BROWN_CLUSTER = './wclusters-engiga'
DEFAULT_BROWN_CLUSTER = './resources/wclusters-engiga'

def _load_brown_cluster(dir_path,cluster_num=1000):
cluster_dict = defaultdict(str)
Expand Down
Loading

0 comments on commit c7f3954

Please sign in to comment.