Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Typo and increased performance in analyze_sentence (#2070)
* Type Type on line 147. Sentence is "...happy ending has it won't..." where "has" should be "as" * Swapped + operator for append when adding to list As @piskvorky pointed out, using `s + [None]`on line 149 creates a new list, an expensive operation considering the goal is just to append `None` to an already existing list. Using `append` increases performance by 5 micro seconds per function call on my system
- Loading branch information