Skip to content

Commit

Permalink
Made changes as suggested in bug #12
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopkunchukuttan committed Jan 2, 2017
1 parent 86dc2b3 commit 2ce6c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/indicnlp/morph/unsupervised_morph.py
Expand Up @@ -97,13 +97,13 @@ def morph_analyze_document(self,tokens):
@param tokens: string sequence of words
@return seuqence of morphemes
@return list of segmentations for each word. Each segmentation is a list of the morphs of the word.
"""

out_tokens=[]
for token in tokens:
morphs=self.morph_analyze(token)
out_tokens.extend(morphs)
out_tokens.append(morphs)
return out_tokens

#### Older implementation
Expand Down

0 comments on commit 2ce6c5b

Please sign in to comment.