Skip to content

Commit

Permalink
Minor FL updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmackie committed Jun 22, 2017
1 parent 669af6a commit e624a85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions corpustools/funcload/functional_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def relative_minpair_fl(corpus_context, segment,
return sum(results)/len(segment_pairs)

def relative_deltah_fl(corpus_context, segment,
environment_filter = None,
environment_filter = None, prevent_normalization=False,
stop_check = None, call_back = None):
"""Calculate the average functional load of the contrasts between a
segment and all other segments, as the decrease in corpus entropy
Expand Down Expand Up @@ -434,7 +434,7 @@ def relative_deltah_fl(corpus_context, segment,

results = []
for sp in segment_pairs:
results.append(deltah_fl(corpus_context, [sp],
results.append(deltah_fl(corpus_context, [sp], prevent_normalization=prevent_normalization,
environment_filter=environment_filter,
stop_check = stop_check, call_back = call_back))
return sum(results)/len(segment_pairs)
Expand Down
2 changes: 1 addition & 1 deletion corpustools/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@ def createMenus(self):
self.analysisMenu.addAction(self.klAct)
self.analysisMenu.addAction(self.stringSimAct)
self.analysisMenu.addAction(self.neighDenAct)
self.analysisMenu.addAction(self.freqaltAct)
# self.analysisMenu.addAction(self.freqaltAct)
self.analysisMenu.addAction(self.mutualInfoAct)
self.analysisMenu.addAction(self.acousticSimFileAct)
#self.analysisMenu.addAction(self.autoAnalysisAct)
Expand Down

0 comments on commit e624a85

Please sign in to comment.