Skip to content

Commit

Permalink
removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Mariani committed Mar 1, 2012
1 parent 2cd2cee commit 5dc8093
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
8 changes: 4 additions & 4 deletions rt/semantic/configure.zcml
Expand Up @@ -18,10 +18,10 @@
/>

<subscriber
for="rt.semantic.behavior.ISemantic
zope.lifecycleevent.interfaces.IObjectCreatedEvent"
handler=".subscribers.set_semantic_data"
/>
for="rt.semantic.behavior.ISemantic
zope.lifecycleevent.interfaces.IObjectCreatedEvent"
handler=".subscribers.set_semantic_data"
/>

<genericsetup:registerProfile
name="default"
Expand Down
2 changes: 1 addition & 1 deletion rt/semantic/tagger.py
Expand Up @@ -11,7 +11,7 @@ def tag(text):

def extract_keywords(pos_tags, count=10):
"""
Filter for nouns and return the most frequent ones
Filter for nouns and return the most frequent ones
"""
noun_types = ['NN', 'NNS', 'NP']
nouns = [noun for noun, tag in pos_tags if tag in noun_types]
Expand Down
5 changes: 2 additions & 3 deletions rt/semantic/tests/test_pos_tagger.py
Expand Up @@ -25,7 +25,6 @@ def test_extract_keywords(self):
pos_tags = tag(self.alicetext)
most_important = extract_keywords(pos_tags)
self.assertEqual(most_important,
['door', 'table', 'house', 'notices', 'time', 'baby',
['door', 'table', 'house', 'notices', 'time', 'baby',
'day', 'finds', 'head', 'mushroom'])



5 changes: 2 additions & 3 deletions rt/semantic/upgrades/configure.zcml
Expand Up @@ -3,12 +3,11 @@
<genericsetup:upgradeSteps
profile="rt.semantic:default"
source="1"
destination="2"
>
destination="2" >
<genericsetup:upgradeStep
handler=".v1to2.upgrade"
title="Add Semantic dexterity behaviour"
description=""
/>
</genericsetup:upgradeSteps>
</configure>
</configure>

0 comments on commit 5dc8093

Please sign in to comment.