Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fixed typo
  • Loading branch information
Anthonyive authored Mar 8, 2021
1 parent 32c8fd4 commit 8648913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ import scattertext as st
nlp = spacy.load('en')
convention_df = st.SampleCorpora.ConventionData2012.get_data().assign(
parse=lambda df: df.text.apply(nlp)
parse=lambda df: df.text.apply(nlp),
party=lambda df: df.party.apply({'democrat': 'Democratic', 'republican': 'Republican'}.get)
)
corpus = st.CorpusFromParsedDocuments(
Expand Down

0 comments on commit 8648913

Please sign in to comment.