-
-
Save quantra-go-algo/8b3201e64dd2684c9db7c24edd06e8e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
token_pos = [] | |
for token in token_without_punc: | |
token_pos.append([token.text, token.lemma_, token.pos_, token.tag_, token.dep_, | |
token.shape_, token.is_alpha, token.is_stop]) | |
df = pd.DataFrame(token_pos, columns=['Text', 'Lemma', 'POS', 'Tag', | |
'Syntactic dependency relation', 'Shape', 'Is Alphabet', 'Is stop word']) | |
df |
Hi Nikhil,
We hope that you found the code helpful. Please do let us know in case you have any queries.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
python pos_tagging.py