Skip to content
This repository has been archived by the owner on Aug 15, 2020. It is now read-only.

Commit

Permalink
misc files for build
Browse files Browse the repository at this point in the history
  • Loading branch information
wboag committed Nov 15, 2015
1 parent dab753d commit 96929c5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions cliner/features_dir/read_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,3 @@ def enabled_modules():
return specs



# Read from config file when module is imported
print enabled_modules()
4 changes: 1 addition & 3 deletions cliner/notes/note.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,6 @@ def conlist(self):
tmp.append('none')
self.concepts.append(tmp)

seen_before = {}

# Use the classifications to correct all mislabled 'none's
for classification in self.derived_note.getClassificationTuples():
concept = classification[0]
Expand All @@ -369,7 +367,7 @@ def conlist(self):
data = self.derived_note.getTokenizedSentences()
text = self.derived_note.getText()
for span in char_spans:
lineno,tokspan = lineno_and_tokspan(line_inds, data, text, span, seen_before)
lineno,tokspan = lineno_and_tokspan(line_inds, data, text, span)
start,end = tokspan

self.concepts[lineno][start] = concept
Expand Down
2 changes: 1 addition & 1 deletion cliner/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def train(training_list, model_path, format, is_crf=True, grid=False):
model.train(notes, grid)

# Pickle dump
print 'pickle dump'
print '\nserializing model to %s\n' % model_path
with open(model_path, "wb") as m_file:
pickle.dump(model, m_file)

Expand Down

0 comments on commit 96929c5

Please sign in to comment.