Skip to content

Commit

Permalink
Update meta_tagger.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadForouhesh authored Mar 9, 2022
1 parent 7f09d29 commit 1103e2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crf_pos/pos_tagger/meta_tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __getitem__(self, item: Union[list, str]) -> List[Tuple[str, str]]:
:param item: An input text/list, the preferred input type is string.
:return: A List of tuples including a word and its part of speech.
"""
if isinstance(item, str): item = self.norm.normalize(item)
if isinstance(item, str): item = self.norm.normalize(item).split()
return self.parse([item])[0]

## ToDo get_resources.
Expand Down

0 comments on commit 1103e2b

Please sign in to comment.