Skip to content

Commit

Permalink
Merge pull request #18 from HLasse/missing_word
Browse files Browse the repository at this point in the history
Added missing word
  • Loading branch information
HLasse authored Oct 13, 2021
2 parents d4e359c + 89ced1b commit 342c8be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion textdescriptives/components/pos_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Counter, Union

@Language.factory("pos_stats", default_config={"use_pos": True})
def create_pos_stats_component(nlp: Language, name: str, use_pos: bool):
def create_pos_stats_component(nlp: Language, name: str, use_pos: bool) -> Language:
"""Allows PosStats to be added to a spaCy pipe using nlp.add_pipe("pos_stats")"""

tagger = set(["tagger"])
Expand Down
2 changes: 1 addition & 1 deletion textdescriptives/components/readability.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

@Language.factory("readability")
def create_readability_component(nlp: Language, name: str):
"""Allows Readability to added to a spaCy pipe using nlp.add_pipe("readability").
"""Allows Readability to be added to a spaCy pipe using nlp.add_pipe("readability").
Readability requires attributes from DescriptiveStatistics and adds it to the
pipe if it not already loaded."""
if "descriptive_stats" not in nlp.pipe_names:
Expand Down

1 comment on commit 342c8be

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
textdescriptives
   init.py40100% 
   about.py30100% 
   dataframe_extract.py86693%71, 128–132
   load_components.py120100% 
textdescriptives/components
   init.py40100% 
   dependency_distance.py320100% 
   descriptive_stats.py51198%112
   pos_stats.py25292%13, 44
   readability.py720100% 
   utils.py160100% 
TOTAL305997% 

Please sign in to comment.