Skip to content

Commit

Permalink
minor parser adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
nate-parrott committed Jan 16, 2015
1 parent aa3e942 commit c223b80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FlashlightApp/EasySIMBL/Flashlight-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.96.4</string>
<string>0.96.4.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand All @@ -59,7 +59,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>34</string>
<string>35</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion FlashlightApp/FlashlightKit/FlashlightKit/Parser/Parsnip.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ - (void)addNewCandidatesToDictionary:(NSMutableDictionary *)dict withCandidate:(

- (double)logProbOfEmissionOfToken:(PSToken *)token fromTerminalNodeNamed:(NSString *)tagName {
if ([PSTerminalNode isNameOfFreeTextNode:tagName]) {
return PSSmoothLogProb(PSLogProb(PSFreeTextProbability));
return PSSmoothLogProb(PSLogProb(PSFreeTextProbability)) * token.features.count;
} else {
PSProbabilityCounter *counter = self.emissionProbs[tagName];
double logProb = 0;
Expand Down

0 comments on commit c223b80

Please sign in to comment.