Skip to content

Commit

Permalink
Naming confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkmcknz committed May 11, 2016
1 parent f9d0726 commit 413cfb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions isac/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ def training_nouns(self, value, entity_type):
if entity_type not in self.nn_training:
self.nn_training.append(entity_type)

def pos_training(self, training):
def pos_training(self, data):

for tag in training['tags']:
for tag in data['tags']:

for pos in self.tokenizer.tagger(training['text']):
for pos in self.tokenizer.tagger(data['text']):
if pos[0] == tag['value']:
tag['pos'] = pos[1]

return training
return data

def register_training(self, data):

Expand Down

0 comments on commit 413cfb2

Please sign in to comment.