Skip to content

Commit

Permalink
Merge pull request #56 from tomaarsen/docs/intro_error
Browse files Browse the repository at this point in the history
Resolved issue with overwriting `nlp` in the introduction doc page
  • Loading branch information
KennethEnevoldsen authored Aug 26, 2022
2 parents b93016f + f424d17 commit ff97e73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To start of with we will need a spaCy pipeline as well as we will need to add th
nlp = spacy.load("en_core_web_lg")
# add the rule-based sentiment model
nlp = nlp.add_pipe("asent_en_v1")
nlp.add_pipe("asent_en_v1")
.. note::

Expand All @@ -63,7 +63,7 @@ To start of with we will need a spaCy pipeline as well as we will need to add th
nlp = spacy.load("da_core_news_lg")
# add the rule-based sentiment model
nlp = nlp.add_pipe("asent_da_v1")
nlp.add_pipe("asent_da_v1")
.. note::

Expand All @@ -90,7 +90,7 @@ To start of with we will need a spaCy pipeline as well as we will need to add th
nlp = spacy.load("nb_core_news_lg")
# add the rule-based sentiment model
nlp = nlp.add_pipe("asent_no_v1")
nlp.add_pipe("asent_no_v1")
.. note::

Expand All @@ -116,7 +116,7 @@ To start of with we will need a spaCy pipeline as well as we will need to add th
nlp = spacy.load("sv_pipeline")
# add the rule-based sentiment model
nlp = nlp.add_pipe("asent_sv_v1")
nlp.add_pipe("asent_sv_v1")
.. note::

Expand Down

1 comment on commit ff97e73

@KennethEnevoldsen
Copy link
Owner Author

Choose a reason for hiding this comment

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

Coverage

Coverage Report
FileStmtsMissCoverMissing
asent
   init.py40100% 
   component.py29197%173
   constants.py60100% 
   data_classes.py740100% 
   getters.py2281593%25, 31, 36, 39, 143, 219, 272, 283, 291, 342, 344, 359, 438, 449, 526
   utils.py19195%42
   visualize.py510100% 
asent/lang
   init.py60100% 
   autoconstructed.py260100% 
   da.py280100% 
   emoji.py100100% 
   en.py190100% 
   no.py180100% 
   sv.py170100% 
TOTAL5351797% 

Please sign in to comment.