1877 matches across 14 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/find_deprecated.py | 30 | |
| LOW | nltk/downloader.py | 171 | |
| LOW | nltk/util.py | 30 | |
| LOW | nltk/util.py | 31 | |
| LOW | nltk/util.py | 31 | |
| LOW | nltk/__init__.py | 103 | |
| LOW | nltk/__init__.py | 133 | |
| LOW | nltk/__init__.py | 134 | |
| LOW | nltk/__init__.py | 134 | |
| LOW | nltk/__init__.py | 135 | |
| LOW | nltk/__init__.py | 136 | |
| LOW | nltk/__init__.py | 137 | |
| LOW | nltk/__init__.py | 138 | |
| LOW | nltk/__init__.py | 139 | |
| LOW | nltk/__init__.py | 140 | |
| LOW | nltk/__init__.py | 146 | |
| LOW | nltk/__init__.py | 147 | |
| LOW | nltk/__init__.py | 148 | |
| LOW | nltk/__init__.py | 149 | |
| LOW | nltk/__init__.py | 150 | |
| LOW | nltk/__init__.py | 151 | |
| LOW | nltk/__init__.py | 152 | |
| LOW | nltk/__init__.py | 153 | |
| LOW | nltk/__init__.py | 154 | |
| LOW | nltk/__init__.py | 155 | |
| LOW | nltk/__init__.py | 156 | |
| LOW | nltk/__init__.py | 179 | |
| LOW | nltk/__init__.py | 179 | |
| LOW | nltk/__init__.py | 199 | |
| LOW | nltk/__init__.py | 199 | |
| LOW | nltk/__init__.py | 199 | |
| LOW | nltk/__init__.py | 199 | |
| LOW | nltk/__init__.py | 200 | |
| LOW | nltk/__init__.py | 200 | |
| LOW | nltk/__init__.py | 200 | |
| LOW | nltk/__init__.py | 200 | |
| LOW | nltk/__init__.py | 200 | |
| LOW | nltk/__init__.py | 200 | |
| LOW | nltk/__init__.py | 201 | |
| LOW | nltk/__init__.py | 201 | |
| LOW | nltk/__init__.py | 201 | |
| LOW | nltk/__init__.py | 201 | |
| LOW | nltk/__init__.py | 201 | |
| LOW | nltk/__init__.py | 201 | |
| LOW | nltk/__init__.py | 202 | |
| LOW | nltk/__init__.py | 202 | |
| LOW | nltk/__init__.py | 202 | |
| LOW | nltk/__init__.py | 202 | |
| LOW | nltk/__init__.py | 202 | |
| LOW | nltk/__init__.py | 202 | |
| LOW | nltk/__init__.py | 107 | |
| LOW | nltk/__init__.py | 173 | |
| LOW | nltk/__init__.py | 177 | |
| LOW | nltk/__init__.py | 186 | |
| LOW | nltk/grammar.py | 1577 | |
| LOW | nltk/book.py | 9 | |
| LOW | nltk/book.py | 18 | |
| LOW | nltk/book.py | 20 | |
| LOW | nltk/collocations.py | 36 | |
| LOW | nltk/collocations.py | 36 | |
| 580 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | nltk/tgrep.py | 298 | def _tgrep_node_literal_value(node): |
| LOW | nltk/tgrep.py | 382 | def _tgrep_nltk_tree_pos_action(_s, _l, tokens): |
| LOW | nltk/tgrep.py | 629 | def _tgrep_conjunction_action(_s, _l, tokens, join_char="&"): |
| LOW | nltk/tgrep.py | 664 | def _tgrep_segmented_pattern_action(_s, _l, tokens): |
| LOW | nltk/tgrep.py | 706 | def _tgrep_node_label_use_action(_s, _l, tokens): |
| LOW | nltk/tgrep.py | 725 | def _tgrep_node_label_pred_use_action(_s, _l, tokens): |
| LOW | nltk/tgrep.py | 754 | def _tgrep_bind_node_label_action(_s, _l, tokens): |
| LOW | nltk/tgrep.py | 793 | def _tgrep_rel_disjunction_action(_s, _l, tokens): |
| LOW | nltk/downloader.py | 1298 | def _simple_interactive_download(self, args): |
| LOW | nltk/downloader.py | 1328 | def _simple_interactive_update(self): |
| LOW | nltk/downloader.py | 1379 | def _simple_interactive_config(self): |
| LOW | nltk/util.py | 385 | def unweighted_minimum_spanning_digraph(tree, children=iter, shapes=None, attr=None): |
| LOW | nltk/util.py | 544 | def acyclic_branches_depth_first( |
| LOW | nltk/util.py | 639 | def unweighted_minimum_spanning_dict(tree, children=iter): |
| LOW | nltk/util.py | 684 | def unweighted_minimum_spanning_tree(tree, children=iter): |
| LOW | nltk/grammar.py | 725 | def is_flexible_chomsky_normal_form(self): |
| LOW | nltk/grammar.py | 1512 | def _read_dependency_production(s): |
| LOW | nltk/featstruct.py | 1699 | def _apply_forwards_to_bindings(forward, bindings): |
| LOW | nltk/data.py | 60 | def _reject_unsafe_no_protocol(resource_url): |
| LOW | nltk/tree/tree.py | 423 | def treeposition_spanning_leaves(self, start, end): |
| LOW | nltk/metrics/paice.py | 26 | def get_words_from_dictionary(lemmas): |
| LOW | nltk/metrics/paice.py | 265 | def _get_truncation_coordinates(self, cutlength=0): |
| LOW | nltk/app/concordance_app.py | 321 | def search_enter_keypress_handler(self, *event): |
| LOW | nltk/app/concordance_app.py | 428 | def handle_error_loading_corpus(self, event): |
| LOW | nltk/app/chunkparser_app.py | 769 | def _adaptively_modify_eval_chunk(self, t): |
| LOW | nltk/app/chunkparser_app.py | 1215 | def _syntax_highlight_grammar(self, grammar): |
| LOW | nltk/app/rdparser_app.py | 986 | def _animate_match_backtrack_frame(self, frame, widget, dy): |
| LOW | nltk/app/chartparser_app.py | 2517 | def bottom_up_leftcorner_strategy(self, *e): |
| LOW | nltk/app/collocations_app.py | 259 | def handle_error_loading_corpus(self, event): |
| LOW | nltk/app/wordnet_app.py | 177 | def get_unique_counter_from_url(sp): |
| LOW | nltk/app/wordnet_app.py | 875 | def get_static_welcome_message(): |
| LOW | nltk/classify/util.py | 171 | def binary_names_demo_features(name): |
| LOW | nltk/classify/maxent.py | 1124 | def calculate_empirical_fcount(train_toks, encoding): |
| LOW | nltk/classify/maxent.py | 1134 | def calculate_estimated_fcount(classifier, train_toks, encoding): |
| LOW | nltk/classify/maxent.py | 206 | def most_informative_features(self, n=10): |
| LOW | nltk/classify/maxent.py | 220 | def show_most_informative_features(self, n=10, show="all"): |
| LOW | nltk/classify/maxent.py | 1028 | def train_maxent_classifier_with_gis( |
| LOW | nltk/classify/maxent.py | 1152 | def train_maxent_classifier_with_iis( |
| LOW | nltk/classify/maxent.py | 1405 | def train_maxent_classifier_with_megam( |
| LOW | nltk/classify/naivebayes.py | 124 | def show_most_informative_features(self, n=10): |
| LOW | nltk/classify/naivebayes.py | 154 | def most_informative_features(self, n=100): |
| LOW | nltk/test/test_filestring_sandbox.py | 21 | def test_rejects_parent_traversal(tmp_path): |
| LOW | nltk/test/test_filestring_sandbox.py | 36 | def test_rejects_symlink_escape(tmp_path): |
| LOW | nltk/test/test_filestring_sandbox.py | 56 | def test_preserves_file_like_objects(): |
| LOW | nltk/test/unit/test_classify.py | 31 | def assert_classifier_correct(algorithm): |
| LOW | nltk/test/unit/test_aline.py | 58 | def test_invalid_segment_raises(self): |
| LOW | nltk/test/unit/test_aline.py | 76 | def test_single_char_different(self): |
| LOW | nltk/test/unit/test_aline.py | 95 | def test_all_consonants_in_feature_matrix(self): |
| LOW | nltk/test/unit/test_aline.py | 102 | def test_all_vowels_in_feature_matrix(self): |
| LOW | nltk/test/unit/test_aline.py | 107 | def test_no_trailing_spaces_in_consonants(self): |
| LOW | nltk/test/unit/test_aline.py | 112 | def test_no_trailing_spaces_in_vowels(self): |
| LOW | nltk/test/unit/test_aline.py | 117 | def test_no_trailing_spaces_in_feature_matrix_keys(self): |
| LOW | nltk/test/unit/test_aline.py | 122 | def test_consonants_not_vowel_place(self): |
| LOW | nltk/test/unit/test_aline.py | 129 | def test_vowels_have_vowel_place(self): |
| LOW | nltk/test/unit/test_aline.py | 167 | def test_delta_identical_consonants(self): |
| LOW | nltk/test/unit/test_aline.py | 173 | def test_delta_identical_vowels(self): |
| LOW | nltk/test/unit/test_aline.py | 178 | def test_delta_similar_consonants(self): |
| LOW | nltk/test/unit/test_aline.py | 203 | def test_sigma_exp_returns_value(self): |
| LOW | nltk/test/unit/test_aline.py | 233 | def test_alignment_returns_list_of_lists(self): |
| LOW | nltk/test/unit/test_segmentation.py | 16 | def test_boundary_marker_variations(): |
| 316 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | nltk/grammar.py | 0 | s -> np vp [1.0] np -> det n [0.5] | np pp [0.25] | 'john' [0.1] | 'i' [0.15] det -> 'the' [0.8] | 'my' [0.2] n -> 'man' |
| HIGH | nltk/parse/pchart.py | 0 | s -> np vp [1.0] np -> det n [0.5] | np pp [0.25] | 'john' [0.1] | 'i' [0.15] det -> 'the' [0.8] | 'my' [0.2] n -> 'man' |
| HIGH | nltk/parse/viterbi.py | 0 | s -> np vp [1.0] np -> det n [0.5] | np pp [0.25] | 'john' [0.1] | 'i' [0.15] det -> 'the' [0.8] | 'my' [0.2] n -> 'man' |
| HIGH | nltk/grammar.py | 0 | s -> np vp [1.0] vp -> v np [.59] vp -> v [.40] vp -> vp pp [.01] np -> det n [.41] np -> name [.28] np -> np pp [.31] p |
| HIGH | nltk/parse/pchart.py | 0 | s -> np vp [1.0] vp -> v np [.59] vp -> v [.40] vp -> vp pp [.01] np -> det n [.41] np -> name [.28] np -> np pp [.31] p |
| HIGH | nltk/parse/viterbi.py | 0 | s -> np vp [1.0] vp -> v np [.59] vp -> v [.40] vp -> vp pp [.01] np -> det n [.41] np -> name [.28] np -> np pp [.31] p |
| HIGH | nltk/collections.py | 0 | return a string representation for this corpus view that is similar to a list's representation; but if it would be more |
| HIGH | nltk/corpus/reader/framenet.py | 0 | return a string representation for this corpus view that is similar to a list's representation; but if it would be more |
| HIGH | nltk/corpus/reader/framenet.py | 0 | return a string representation for this corpus view that is similar to a list's representation; but if it would be more |
| HIGH | nltk/corpus/reader/framenet.py | 0 | return a string representation for this corpus view that is similar to a list's representation; but if it would be more |
| HIGH | nltk/corpus/reader/framenet.py | 0 | return a string representation for this corpus view that is similar to a list's representation; but if it would be more |
| HIGH | nltk/probability.py | 0 | :rtype: str :return: a string representation of this ``probdist``. |
| HIGH | nltk/probability.py | 0 | :rtype: str :return: a string representation of this ``probdist``. |
| HIGH | nltk/probability.py | 0 | :rtype: str :return: a string representation of this ``probdist``. |
| HIGH | nltk/probability.py | 0 | return a string representation of this ``probdist``. :rtype: str |
| HIGH | nltk/probability.py | 0 | return a string representation of this ``probdist``. :rtype: str |
| HIGH | nltk/probability.py | 0 | return a string representation of this ``probdist``. :rtype: str |
| HIGH | nltk/probability.py | 0 | return a string representation of this ``probdist``. :rtype: str |
| HIGH | nltk/probability.py | 0 | return a string representation of this ``probdist``. :rtype: str |
| HIGH | nltk/app/chunkparser_app.py | 0 | enter the tkinter mainloop. this function must be called if this demo is created from a non-interactive program (e.g. fr |
| HIGH | nltk/app/rdparser_app.py | 0 | enter the tkinter mainloop. this function must be called if this demo is created from a non-interactive program (e.g. fr |
| HIGH | nltk/app/srparser_app.py | 0 | enter the tkinter mainloop. this function must be called if this demo is created from a non-interactive program (e.g. fr |
| HIGH | nltk/app/chartparser_app.py | 0 | enter the tkinter mainloop. this function must be called if this demo is created from a non-interactive program (e.g. fr |
| HIGH | nltk/sem/drt_glue_demo.py | 0 | enter the tkinter mainloop. this function must be called if this demo is created from a non-interactive program (e.g. fr |
| HIGH | nltk/draw/tree.py | 0 | enter the tkinter mainloop. this function must be called if this demo is created from a non-interactive program (e.g. fr |
| HIGH | nltk/translate/ibm2.py | 0 | probability of target sentence and an alignment given the source sentence |
| HIGH | nltk/translate/ibm3.py | 0 | probability of target sentence and an alignment given the source sentence |
| HIGH | nltk/translate/ibm4.py | 0 | probability of target sentence and an alignment given the source sentence |
| HIGH | nltk/translate/ibm5.py | 0 | probability of target sentence and an alignment given the source sentence |
| HIGH | nltk/translate/ibm1.py | 0 | probability of target sentence and an alignment given the source sentence |
| HIGH | nltk/sem/drt.py | 0 | replace all instances of variable v with expression e in self, where v is free in self. |
| HIGH | nltk/sem/drt.py | 0 | replace all instances of variable v with expression e in self, where v is free in self. |
| HIGH | nltk/sem/drt.py | 0 | replace all instances of variable v with expression e in self, where v is free in self. |
| HIGH | nltk/sem/drt.py | 0 | defines equality modulo alphabetic variance. if we are comparing \x.m and \y.n, then check equality of m and n[x/y]. |
| HIGH | nltk/sem/drt.py | 0 | defines equality modulo alphabetic variance. if we are comparing \x.m and \y.n, then check equality of m and n[x/y]. |
| HIGH | nltk/sem/logic.py | 0 | defines equality modulo alphabetic variance. if we are comparing \x.m and \y.n, then check equality of m and n[x/y]. |
| HIGH | nltk/sem/glue.py | 0 | pick an alphabetic character as identifier for an entity in the model. :param value: where to index into the list of cha |
| HIGH | nltk/sem/lfg.py | 0 | pick an alphabetic character as identifier for an entity in the model. :param value: where to index into the list of cha |
| HIGH | nltk/inference/mace.py | 0 | pick an alphabetic character as identifier for an entity in the model. :param value: where to index into the list of cha |
| HIGH | nltk/sem/linearlogic.py | 0 | from iddo lev's phd dissertation p108-109 :param index_counter: ``counter`` for unique indices :param glueformulafactory |
| HIGH | nltk/sem/linearlogic.py | 0 | from iddo lev's phd dissertation p108-109 :param index_counter: ``counter`` for unique indices :param glueformulafactory |
| HIGH | nltk/sem/linearlogic.py | 0 | from iddo lev's phd dissertation p108-109 :param index_counter: ``counter`` for unique indices :param glueformulafactory |
| HIGH | nltk/corpus/reader/aligned.py | 0 | :return: the given file(s) as a list of words and punctuation symbols. :rtype: list(str) |
| HIGH | nltk/corpus/reader/plaintext.py | 0 | :return: the given file(s) as a list of words and punctuation symbols. :rtype: list(str) |
| HIGH | nltk/corpus/reader/chunked.py | 0 | :return: the given file(s) as a list of words and punctuation symbols. :rtype: list(str) |
| HIGH | nltk/corpus/reader/tagged.py | 0 | :return: the given file(s) as a list of words and punctuation symbols. :rtype: list(str) |
| HIGH | nltk/corpus/reader/semcor.py | 0 | :return: the given file(s) as a list of words and punctuation symbols. :rtype: list(str) |
| HIGH | nltk/corpus/reader/aligned.py | 0 | :return: the given file(s) as a list of sentences or utterances, each encoded as a list of word strings. :rtype: list(li |
| HIGH | nltk/corpus/reader/plaintext.py | 0 | :return: the given file(s) as a list of sentences or utterances, each encoded as a list of word strings. :rtype: list(li |
| HIGH | nltk/corpus/reader/chunked.py | 0 | :return: the given file(s) as a list of sentences or utterances, each encoded as a list of word strings. :rtype: list(li |
| HIGH | nltk/corpus/reader/tagged.py | 0 | :return: the given file(s) as a list of sentences or utterances, each encoded as a list of word strings. :rtype: list(li |
| HIGH | nltk/corpus/reader/plaintext.py | 0 | :return: the given file(s) as a list of paragraphs, each encoded as a list of sentences, which are in turn encoded as li |
| HIGH | nltk/corpus/reader/chunked.py | 0 | :return: the given file(s) as a list of paragraphs, each encoded as a list of sentences, which are in turn encoded as li |
| HIGH | nltk/corpus/reader/tagged.py | 0 | :return: the given file(s) as a list of paragraphs, each encoded as a list of sentences, which are in turn encoded as li |
| HIGH | nltk/corpus/reader/framenet.py | 0 | displays an abbreviated repr of only the first several elements, not the whole list. |
| HIGH | nltk/corpus/reader/framenet.py | 0 | displays an abbreviated repr of only the first several elements, not the whole list. |
| HIGH | nltk/corpus/reader/framenet.py | 0 | displays an abbreviated repr of only the first several elements, not the whole list. |
| HIGH | nltk/corpus/reader/framenet.py | 0 | displays an abbreviated repr of only the first several elements, not the whole list. |
| HIGH | nltk/parse/recursivedescent.py | 0 | set the level of tracing output that should be generated when parsing a text. :type trace: int :param trace: the trace l |
| HIGH | nltk/parse/pchart.py | 0 | set the level of tracing output that should be generated when parsing a text. :type trace: int :param trace: the trace l |
| 14 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/find_deprecated.py | 116 | |
| LOW | tools/find_deprecated.py | 151 | |
| LOW | nltk/internals.py | 494 | |
| LOW | nltk/internals.py | 684 | |
| LOW | nltk/internals.py | 1089 | |
| LOW | nltk/tgrep.py | 322 | |
| LOW | nltk/tgrep.py | 398 | |
| LOW | nltk/downloader.py | 2677 | |
| LOW | nltk/downloader.py | 523 | |
| LOW | nltk/downloader.py | 677 | |
| LOW | nltk/downloader.py | 833 | |
| LOW | nltk/downloader.py | 948 | |
| LOW | nltk/downloader.py | 1050 | |
| LOW | nltk/downloader.py | 1257 | |
| LOW | nltk/downloader.py | 1298 | |
| LOW | nltk/downloader.py | 1328 | |
| LOW | nltk/downloader.py | 1379 | |
| LOW | nltk/downloader.py | 1792 | |
| LOW | nltk/downloader.py | 1888 | |
| LOW | nltk/downloader.py | 1956 | |
| LOW | nltk/downloader.py | 2047 | |
| LOW | nltk/downloader.py | 2281 | |
| LOW | nltk/toolbox.py | 274 | |
| LOW | nltk/toolbox.py | 461 | |
| LOW | nltk/util.py | 221 | |
| LOW | nltk/util.py | 300 | |
| LOW | nltk/util.py | 342 | |
| LOW | nltk/util.py | 431 | |
| LOW | nltk/util.py | 471 | |
| LOW | nltk/util.py | 544 | |
| LOW | nltk/util.py | 639 | |
| LOW | nltk/util.py | 1144 | |
| LOW | nltk/pathsec.py | 70 | |
| LOW | nltk/pathsec.py | 157 | |
| LOW | nltk/pathsec.py | 202 | |
| LOW | nltk/pathsec.py | 245 | |
| LOW | nltk/grammar.py | 1362 | |
| LOW | nltk/grammar.py | 1427 | |
| LOW | nltk/grammar.py | 563 | |
| LOW | nltk/grammar.py | 842 | |
| LOW | nltk/cli.py | 42 | |
| LOW | nltk/collections.py | 63 | |
| LOW | nltk/collections.py | 396 | |
| LOW | nltk/probability.py | 693 | |
| LOW | nltk/featstruct.py | 1169 | |
| LOW | nltk/featstruct.py | 1254 | |
| LOW | nltk/featstruct.py | 1578 | |
| LOW | nltk/featstruct.py | 2606 | |
| LOW | nltk/featstruct.py | 154 | |
| LOW | nltk/featstruct.py | 642 | |
| LOW | nltk/featstruct.py | 680 | |
| LOW | nltk/featstruct.py | 698 | |
| LOW | nltk/featstruct.py | 777 | |
| LOW | nltk/featstruct.py | 821 | |
| LOW | nltk/featstruct.py | 957 | |
| LOW | nltk/featstruct.py | 973 | |
| LOW | nltk/featstruct.py | 991 | |
| LOW | nltk/featstruct.py | 1049 | |
| LOW | nltk/featstruct.py | 2318 | |
| LOW | nltk/data.py | 577 | |
| 305 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | nltk/langnames.py | 100 | # ======================================================================= |
| MEDIUM | nltk/langnames.py | 148 | # ====================================================================== |
| MEDIUM | nltk/downloader.py | 70 | # ---------------------------------------------------------------------- |
| MEDIUM | nltk/tabdata.py | 60 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/tabdata.py | 62 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/tabdata.py | 98 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/tabdata.py | 100 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/data.py | 232 | # ---------------------------------------------------------------------- |
| MEDIUM | nltk/data.py | 234 | # ---------------------------------------------------------------------- |
| MEDIUM | nltk/chunk/named_entity.py | 317 | # ====================================================================================== |
| MEDIUM | nltk/chunk/named_entity.py | 359 | # ====================================================================================== |
| MEDIUM | nltk/test/unit/test_aline.py | 87 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_aline.py | 89 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_distance.py | 164 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_distance.py | 166 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_distance.py | 199 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_distance.py | 201 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_distance.py | 140 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_distance.py | 142 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_distance.py | 183 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_distance.py | 185 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_corpus_util.py | 16 | # ---------------------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_corpus_util.py | 18 | # ---------------------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_corpus_util.py | 79 | # ---------------------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_corpus_util.py | 81 | # ---------------------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 14 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 16 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 43 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 45 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 86 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 89 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 203 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 205 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 217 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 219 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 310 | # --------------------------------------------------------- |
| MEDIUM | nltk/test/unit/test_verbnet.py | 312 | # --------------------------------------------------------- |
| MEDIUM | nltk/sem/drt.py | 1010 | # ========================================================== |
| MEDIUM | nltk/sem/drt.py | 1012 | # ========================================================== |
| MEDIUM | nltk/corpus/reader/api.py | 508 | # ------------------------------------------------------------ |
| MEDIUM | nltk/corpus/reader/api.py | 529 | # ------------------------------------------------------------ |
| MEDIUM | nltk/huggingface/dataset.py | 74 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 76 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 90 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 92 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 113 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 115 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 175 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 177 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 260 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/huggingface/dataset.py | 262 | # --------------------------------------------------------------------------- |
| MEDIUM | nltk/ccg/lexicon.py | 18 | # ------------ |
| MEDIUM | nltk/ccg/lexicon.py | 20 | # ------------ |
| MEDIUM | nltk/ccg/lexicon.py | 130 | # ----------- |
| MEDIUM | nltk/ccg/lexicon.py | 132 | # ----------- |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tools/find_deprecated.py | 55 | # Define a regexp to search for deprecated definitions. |
| MEDIUM | nltk/downloader.py | 863 | # Define a helper function for displaying output: |
| MEDIUM | nltk/downloader.py | 1525 | # Create the main window. |
| MEDIUM | nltk/downloader.py | 1572 | # Create the top-level frame structures |
| MEDIUM | nltk/downloader.py | 1595 | # Create the tabs |
| MEDIUM | nltk/downloader.py | 1604 | # Create the table. |
| MEDIUM | nltk/downloader.py | 1710 | # Create a menu to control which columns of the table are |
| MEDIUM | nltk/downloader.py | 1725 | # Create a sort menu |
| MEDIUM | nltk/downloader.py | 2225 | # Create a new data server object for the download operation, |
| MEDIUM | nltk/toolbox.py | 325 | """This class is the base class for settings files.""" |
| MEDIUM | nltk/lazyimport.py | 1 | # This module is from mx/DateTime/LazyModule.py and is |
| MEDIUM | nltk/text.py | 214 | # Create the pretty lines with the query_word in the middle. |
| MEDIUM | nltk/text.py | 221 | # Create the ConcordanceLine |
| MEDIUM | nltk/text.py | 584 | # Create the model when using it the first time. |
| MEDIUM | nltk/probability.py | 1176 | # Create a heldout probability distribution for each pair of |
| MEDIUM | nltk/probability.py | 1325 | # This method is problematic because the situation ``N(c+1) == 0`` |
| MEDIUM | nltk/featstruct.py | 2243 | # Create the new feature structure |
| MEDIUM | nltk/tree/transforms.py | 128 | # This method is 7x faster which helps when parsing 40,000 sentences. |
| MEDIUM | nltk/app/rdparser_app.py | 113 | # Create the basic frames. |
| MEDIUM | nltk/app/srparser_app.py | 122 | # Create the basic frames. |
| MEDIUM | nltk/app/chartparser_app.py | 449 | # Create a widget for it. |
| MEDIUM | nltk/app/chartparser_app.py | 1054 | # Create the chart canvas. |
| MEDIUM | nltk/app/chartparser_app.py | 1059 | # Create the sentence canvas. |
| MEDIUM | nltk/app/chartparser_app.py | 1070 | # Create the tree canvas. |
| MEDIUM | nltk/app/chartparser_app.py | 1789 | # Create the root window. |
| MEDIUM | nltk/classify/util.py | 243 | # Create a list of male names to be used as positive-labeled examples for training |
| MEDIUM | nltk/classify/util.py | 246 | # Create a list of male and female names to be used as unlabeled examples |
| MEDIUM | nltk/classify/util.py | 249 | # Create a test set with correctly-labeled male and female names |
| MEDIUM | nltk/classify/__init__.py | 49 | >>> # Define a feature detector function. |
| MEDIUM | nltk/classify/positivenaivebayes.py | 142 | # Create the P(label) distribution. |
| MEDIUM | nltk/classify/positivenaivebayes.py | 147 | # Create the P(fval|label, fname) distribution. |
| MEDIUM | nltk/classify/naivebayes.py | 235 | # Create the P(label) distribution |
| MEDIUM | nltk/classify/naivebayes.py | 238 | # Create the P(fval|label, fname) distribution |
| MEDIUM | nltk/test/unit/test_downloader_atomic.py | 25 | # Create a custom server class to safely track requests |
| MEDIUM | nltk/test/unit/test_corpus_reader.py | 22 | # Create a symlink inside corpus_root that points outside corpus_root |
| MEDIUM | nltk/sem/drt.py | 84 | """This method is intended to be overridden for logics that |
| MEDIUM | nltk/sem/util.py | 141 | # Initialize a variable assignment with parameter ``dom`` |
| MEDIUM | nltk/sem/logic.py | 1874 | """This class represents implications""" |
| MEDIUM | nltk/sem/logic.py | 1881 | """This class represents biconditionals""" |
| MEDIUM | nltk/sem/logic.py | 1888 | """This class represents equality expressions like "(x = y)".""" |
| MEDIUM | nltk/sem/logic.py | 300 | """This method is intended to be overridden for logics that |
| MEDIUM | nltk/sem/logic.py | 1403 | """This class represents a variable to be used as a predicate or entity""" |
| MEDIUM | nltk/sem/logic.py | 1475 | """This class represents variables that take the form of a single lowercase |
| MEDIUM | nltk/sem/logic.py | 1505 | """This class represents variables that take the form of a single uppercase |
| MEDIUM | nltk/sem/logic.py | 1520 | """This class represents variables that take the form of a single lowercase |
| MEDIUM | nltk/sem/logic.py | 1527 | """This class represents variables that do not take the form of a single |
| MEDIUM | nltk/sem/logic.py | 1848 | """This class represents conjunctions""" |
| MEDIUM | nltk/sem/logic.py | 1861 | """This class represents disjunctions""" |
| MEDIUM | nltk/sem/drt_glue_demo.py | 55 | # Create the basic frames. |
| MEDIUM | nltk/corpus/europarl_raw.py | 13 | # Create a new corpus reader instance for each European language |
| MEDIUM | nltk/parse/pchart.py | 508 | # Define a list of parsers. We'll use all parsers. |
| MEDIUM | nltk/parse/chart.py | 602 | # Create the index. |
| MEDIUM | nltk/parse/nonprojectivedependencyparser.py | 506 | # Create a new node v_n+1 with address = len(nodes) + 1 |
| MEDIUM | nltk/parse/featurechart.py | 201 | # Create the index. |
| MEDIUM | nltk/parse/featurechart.py | 285 | # Create a copy of the bindings. |
| MEDIUM | nltk/parse/featurechart.py | 298 | # Create a copy of the bindings. |
| MEDIUM | nltk/parse/earleychart.py | 103 | # Create the index. |
| MEDIUM | nltk/parse/earleychart.py | 153 | # Create the index. |
| MEDIUM | nltk/draw/cfg.py | 185 | # Create the top-level window. |
| MEDIUM | nltk/draw/cfg.py | 248 | # Create the basic Text widget & scrollbar. |
| 15 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | nltk/featstruct.py | 537 | Return True if ``self`` subsumes ``other``. I.e., return true |
| HIGH | nltk/featstruct.py | 1481 | contain the unified value, the value of ``fstruct2`` is undefined, |
| HIGH | nltk/cluster/util.py | 157 | queue.push((priority, node)) |
| HIGH | nltk/app/chartparser_app.py | 1237 | edgelen = max(edge.length(), 1) |
| HIGH | nltk/classify/maxent.py | 1125 | fcount = numpy.zeros(encoding.length(), "d") |
| HIGH | nltk/classify/maxent.py | 1135 | fcount = numpy.zeros(encoding.length(), "d") |
| HIGH | nltk/classify/maxent.py | 118 | assert encoding.length() == len(weights) |
| HIGH | nltk/classify/maxent.py | 130 | assert self._encoding.length() == len(new_weights) |
| HIGH | nltk/classify/maxent.py | 239 | self._encoding.length(), |
| HIGH | nltk/classify/maxent.py | 1346 | deltas = numpy.ones(encoding.length(), "d") |
| HIGH | nltk/classify/maxent.py | 1351 | A = numpy.zeros((len(nfmap), encoding.length()), "d") |
| HIGH | nltk/classify/maxent.py | 1483 | weights = parse_megam_weights(stdout, encoding.length(), explicit) |
| HIGH | nltk/classify/tadm.py | 115 | for i in range(encoding.length()): |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 241 | stack.push(_Hypothesis(0.2)) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 242 | stack.push(poor_hypothesis) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 243 | stack.push(_Hypothesis(0.1)) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 244 | stack.push(_Hypothesis(0.3)) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 256 | stack.push(poor_hypothesis) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 257 | stack.push(worse_hypothesis) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 258 | stack.push(_Hypothesis(0.9)) # greatly superior hypothesis |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 270 | stack.push(_Hypothesis(0.9)) # greatly superior hypothesis |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 271 | stack.push(poor_hypothesis) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 282 | stack.push(_Hypothesis(0.0)) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 283 | stack.push(best_hypothesis) |
| HIGH | nltk/test/unit/translate/test_stack_decoder.py | 284 | stack.push(_Hypothesis(0.5)) |
| HIGH | nltk/parse/pchart.py | 422 | queue.sort(key=lambda edge: edge.length()) |
| HIGH | nltk/parse/chart.py | 565 | :param length: Only generate edges ``e`` where ``e.length()==length`` |
| HIGH | nltk/parse/chart.py | 829 | edges = sorted((e.length(), e.start(), e) for e in self) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/global_replace.py | 38 | except Exception: |
| MEDIUM | tools/global_replace.py | 19 | def update(file, pattern, replacement): |
| LOW | tools/huggingface/push_stopwords.py | 199 | except Exception: |
| MEDIUM | nltk/downloader.py | 1291 | print("Error reading from server: %s" % e) |
| MEDIUM | nltk/downloader.py | 1293 | print("Error connecting to server: %s" % e.reason) |
| MEDIUM | nltk/downloader.py | 1407 | print(f"Error reading <{new_url!r}>:\n {e}") |
| MEDIUM | nltk/downloader.py | 1956 | def _download_cb(self, download_iter, ids): |
| LOW | nltk/downloader.py | 1158 | except Exception: |
| LOW | nltk/downloader.py | 1406 | except Exception as e: |
| LOW | nltk/downloader.py | 2137 | except Exception: |
| LOW | nltk/downloader.py | 2483 | except Exception as e: |
| LOW | nltk/downloader.py | 2510 | except Exception as e: |
| LOW | nltk/downloader.py | 2521 | except Exception as e: |
| LOW | nltk/downloader.py | 2524 | except Exception as e: |
| LOW | nltk/downloader.py | 2699 | except Exception as e: |
| LOW | nltk/downloader.py | 2703 | except Exception as e: |
| LOW | nltk/pathsec.py | 152 | except Exception: |
| LOW | nltk/pathsec.py | 232 | except Exception: |
| LOW | nltk/featstruct.py | 2703 | except Exception: |
| LOW | nltk/data.py | 480 | except Exception as e: |
| LOW | nltk/metrics/distance.py | 276 | except Exception: |
| MEDIUM | nltk/twitter/twitterclient.py | 100 | print(f"Error (stream will continue): {e}") |
| MEDIUM | nltk/twitter/twitterclient.py | 117 | print(f"Error (stream will continue): {e}") |
| LOW | nltk/app/concordance_app.py | 403 | except Exception: |
| LOW | nltk/app/concordance_app.py | 654 | except Exception as e: |
| MEDIUM | nltk/app/concordance_app.py | 647 | def run(self): |
| LOW | nltk/app/chunkparser_app.py | 1463 | except Exception: |
| MEDIUM | nltk/app/chunkparser_app.py | 1333 | def _chunkparse(self, words): |
| LOW | nltk/app/rdparser_app.py | 711 | except Exception: |
| LOW | nltk/app/rdparser_app.py | 725 | except Exception: |
| LOW | nltk/app/srparser_app.py | 656 | except Exception: |
| LOW | nltk/app/srparser_app.py | 671 | except Exception: |
| MEDIUM | nltk/app/chartparser_app.py | 1816 | print("Error creating Tree View") |
| LOW | nltk/app/chartparser_app.py | 188 | except Exception: |
| LOW | nltk/app/chartparser_app.py | 532 | except Exception: |
| LOW | nltk/app/chartparser_app.py | 622 | except Exception: |
| LOW | nltk/app/chartparser_app.py | 800 | except Exception as e: |
| LOW | nltk/app/chartparser_app.py | 811 | except Exception as e: |
| LOW | nltk/app/chartparser_app.py | 1815 | except Exception: |
| LOW | nltk/app/chartparser_app.py | 2241 | except Exception: |
| LOW | nltk/app/chartparser_app.py | 2283 | except Exception as e: |
| LOW | nltk/app/chartparser_app.py | 2297 | except Exception as e: |
| LOW | nltk/app/chartparser_app.py | 2316 | except Exception as e: |
| LOW | nltk/app/chartparser_app.py | 2338 | except Exception as e: |
| LOW | nltk/app/collocations_app.py | 421 | except Exception as e: |
| MEDIUM | nltk/app/collocations_app.py | 406 | def run(self): |
| LOW | nltk/app/nemo_app.py | 95 | except Exception: |
| LOW | nltk/app/nemo_app.py | 115 | except Exception: |
| LOW | nltk/classify/weka.py | 72 | except Exception: |
| MEDIUM | nltk/classify/weka.py | 67 | def _check_weka_version(jar): |
| LOW | nltk/test/unit/test_twitter_auth.py | 66 | except Exception as e: |
| LOW | nltk/sem/boxer.py | 990 | except Exception as e: |
| MEDIUM | nltk/sem/boxer.py | 827 | def handle(self, tok, context): |
| LOW | nltk/sem/glue.py | 241 | except Exception: |
| LOW | nltk/sem/glue.py | 651 | except Exception as e: |
| MEDIUM | nltk/sem/glue.py | 655 | print("Error when checking logical equality of statements", e) |
| LOW | nltk/sem/drt_glue_demo.py | 405 | except Exception: |
| LOW | nltk/sem/drt_glue_demo.py | 471 | except Exception as e: |
| LOW | nltk/corpus/reader/nkjp.py | 275 | except Exception as e: |
| LOW | nltk/corpus/reader/nkjp.py | 351 | except Exception as e: |
| 45 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | nltk/jsontags.py | 64 | # Check if we have a tagged object. |
| LOW | nltk/internals.py | 316 | # Check if a method has been overridden |
| LOW | nltk/internals.py | 535 | # Check if the alternative is inside a 'file' directory |
| LOW | nltk/internals.py | 551 | # Check if the environment variable contains a direct path to the bin |
| LOW | nltk/internals.py | 557 | # Check if the possible bin names exist inside the environment variable directories |
| LOW | nltk/internals.py | 565 | # Check if the alternative is inside a 'file' directory |
| LOW | nltk/internals.py | 568 | # Check if the alternative is inside a 'bin' directory |
| LOW | nltk/downloader.py | 817 | # Check if it needs to be unzipped. |
| LOW | nltk/downloader.py | 986 | # Check if the file has the correct size. |
| LOW | nltk/downloader.py | 994 | # Check if the file's checksum matches. |
| LOW | nltk/downloader.py | 1054 | # Check if the index is already up-to-date. If so, do nothing. |
| LOW | nltk/downloader.py | 1180 | # Check if we are on GAE where we cannot write into filesystem. |
| LOW | nltk/downloader.py | 1184 | # Check if we have sufficient permissions to install in a |
| LOW | nltk/downloader.py | 2269 | # Check if we've been told to kill ourselves: |
| LOW | nltk/util.py | 679 | queue.append(child) # Add child to queue |
| LOW | nltk/__init__.py | 181 | # Check if tkinter exists without importing it to avoid crashes after |
| LOW | nltk/collections.py | 468 | # Return the value |
| LOW | nltk/probability.py | 2499 | # Print the results in a formatted table. |
| LOW | nltk/featstruct.py | 1780 | # Print the result. |
| LOW | nltk/featstruct.py | 2355 | # Check if it's a special feature. |
| LOW | nltk/featstruct.py | 2361 | # Check if this feature has a value already. |
| LOW | nltk/data.py | 625 | # Check if the resource name includes a zipfile name |
| LOW | nltk/data.py | 1624 | # Return the result |
| LOW | nltk/app/chunkparser_app.py | 714 | # Check if we've seen this grammar already. If so, then |
| LOW | nltk/app/chunkparser_app.py | 748 | # Check if we're done |
| LOW | nltk/app/chunkparser_app.py | 1301 | # Display the results |
| LOW | nltk/app/rdparser_app.py | 644 | # Check if we just completed a parse. |
| LOW | nltk/app/chartparser_app.py | 1273 | # Check if we can fit the edge in this level. |
| LOW | nltk/app/wordnet_app.py | 130 | # Set type to plain to prevent XSS by printing the path as HTML |
| LOW | nltk/classify/weka.py | 119 | # Check if something went wrong: |
| LOW | nltk/classify/weka.py | 344 | # Check if the tokens are labeled or unlabeled. If unlabeled, |
| LOW | nltk/classify/maxent.py | 726 | # Return the result |
| LOW | nltk/classify/megam.py | 100 | # Write the file, which contains one line per instance. |
| LOW | nltk/translate/phrase_based.py | 60 | # Check if alignment points are consistent. |
| LOW | nltk/corpus/reader/util.py | 247 | # Check if it's in the cache. |
| LOW | nltk/corpus/reader/util.py | 259 | # Check if it's in the cache. |
| LOW | nltk/corpus/reader/wordnet.py | 1915 | # Open the file for reading. Note that we can not re-use |
| LOW | nltk/parse/pchart.py | 266 | # Assign probabilities to the trees. |
| LOW | nltk/parse/chart.py | 648 | # Add it to the list of edges. |
| LOW | nltk/parse/nonprojectivedependencyparser.py | 628 | # Set roots to attempt |
| LOW | nltk/parse/earleychart.py | 539 | # Print results. |
| LOW | nltk/stem/porter.py | 712 | # Print the results. |
| LOW | nltk/stem/lancaster.py | 176 | # Check if a user wants to strip prefix |
| LOW | nltk/stem/lancaster.py | 178 | # Check if a user wants to use his/her own rule tuples. |
| LOW | nltk/inference/tableau.py | 106 | # Check if the branch is closed. Return 'True' if it is |
| LOW | nltk/inference/tableau.py | 129 | # Check if the branch is closed. Return 'True' if it is |
| LOW | nltk/inference/tableau.py | 152 | # Check if the branch is closed. Return 'True' if it is |
| LOW | nltk/inference/tableau.py | 166 | # Check if the branch is closed. Return 'True' if it is |
| LOW | nltk/tag/brill_trainer.py | 531 | # Check if the change causes any rule at this position to |
| LOW | nltk/tag/brill_trainer.py | 540 | # Check if the change causes our templates to propose any |
| LOW | nltk/tokenize/punkt.py | 1676 | # Check if any initials or ordinals tokens that are marked |
| LOW | nltk/ccg/chart.py | 172 | # Check if the two edges are permitted to combine. |
| LOW | nltk/ccg/chart.py | 305 | # Output the resulting parses |
| LOW | nltk/ccg/chart.py | 427 | # Print the resulting category on a new line. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tools/global_replace.py | 1 | #!/usr/bin/env python |
| LOW | tools/github_actions/third-party.sh | 101 | |
| LOW | nltk/grammar.py | 1 | # Natural Language Toolkit: Context Free Grammars |
| LOW | nltk/probability.py | 1 | # Natural Language Toolkit: Probability and Statistics |
| LOW | nltk/probability.py | 1301 | ##////////////////////////////////////////////////////// |
| LOW | nltk/probability.py | 1321 | # where *c* is the original count, *N(i)* is the number of event types |
| LOW | nltk/probability.py | 1341 | # appropriate for high values of r. For low values of r, they use the |
| LOW | nltk/probability.py | 1661 | ##////////////////////////////////////////////////////// |
| LOW | nltk/probability.py | 1681 | # titled "Improved backing-off for n-gram language modeling." In the same paper |
| LOW | nltk/collocations.py | 381 | ) |
| LOW | nltk/data.py | 221 | except ValueError: |
| LOW | nltk/decorators.py | 241 | ## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| LOW | nltk/misc/sort.py | 1 | # Natural Language Toolkit: List Sorting |
| LOW | nltk/tree/immutable.py | 1 | # Natural Language Toolkit: Text Trees |
| LOW | nltk/tree/parented.py | 1 | # Natural Language Toolkit: Text Trees |
| LOW | nltk/tree/tree.py | 1 | # Natural Language Toolkit: Text Trees |
| LOW | nltk/tree/parsing.py | 1 | # Natural Language Toolkit: Text Trees |
| LOW | nltk/tree/probabilistic.py | 1 | # Natural Language Toolkit: Text Trees |
| LOW | nltk/app/srparser_app.py | 821 | # Display the available productions. |
| LOW | nltk/app/srparser_app.py | 841 | # color='#000000', font=self._font) |
| LOW | nltk/app/chartparser_app.py | 2561 | # ChartComparer(*charts).mainloop() |
| LOW | nltk/app/wordnet_app.py | 201 | # The webbrowser module is unpredictable, typically it blocks if it uses |
| LOW | nltk/classify/api.py | 161 | # strs or ints, but can be any immutable type. The set |
| LOW | nltk/classify/api.py | 181 | # the *i*\ th element of ``featuresets``. |
| LOW | nltk/test/pytest.ini | 1 | [pytest] |
| LOW | nltk/test/unit/test_distance.py | 21 | # without transpositions: |
| LOW | nltk/test/unit/test_distance.py | 41 | ("rain", "shine", 1, (3, 3)), |
| LOW | nltk/test/unit/test_distance.py | 61 | ("lnaguaeg", "language", 2, (2, 4)), # Doesn't *require* substitutions |
| LOW | nltk/test/unit/test_distance.py | 81 | # |
| LOW | nltk/test/unit/lm/test_models.py | 101 | def test_mle_bigram_entropy_perplexity_unseen(mle_bigram_model): |
| LOW | nltk/test/unit/lm/test_models.py | 161 | return model |
| LOW | nltk/test/unit/lm/test_models.py | 261 | ("d", ["c"], 2.0 / 9), |
| LOW | nltk/test/unit/lm/test_models.py | 321 | "word, context, expected_score", |
| LOW | nltk/test/unit/lm/test_models.py | 381 | # = 1 / 14 |
| LOW | nltk/test/unit/lm/test_models.py | 441 | # P(c|b) = alpha('bc') + gamma('b') * P(c) |
| LOW | nltk/chat/zen.py | 81 | ), |
| LOW | nltk/chat/eliza.py | 1 | # Natural Language Toolkit: Eliza |
| LOW | nltk/translate/ibm1.py | 1 | # Natural Language Toolkit: IBM Model 1 |
| LOW | nltk/sem/chat80.py | 641 | |
| LOW | nltk/sem/hole.py | 221 | plug_acc = plug_acc0.copy() |
| LOW | nltk/sem/boxer.py | 461 | # self.assertToken(self.token(), ':') |
| LOW | nltk/corpus/__init__.py | 501 | # ipipan = LazyCorpusLoader( |
| LOW | nltk/corpus/reader/framenet.py | 3301 | |
| LOW | nltk/corpus/reader/framenet.py | 3401 | allcorpora = {x.corpname for x in fn.docs_metadata()} |
| LOW | nltk/corpus/reader/wordnet.py | 1 | # Natural Language Toolkit: WordNet |
| LOW | nltk/corpus/reader/wordnet.py | 41 | |
| LOW | nltk/corpus/reader/wordnet.py | 981 | # including a correction: |
| LOW | nltk/parse/pchart.py | 361 | |
| LOW | nltk/parse/nonprojectivedependencyparser.py | 1 | # Natural Language Toolkit: Dependency Grammars |
| LOW | nltk/parse/transitionparser.py | 581 | # Using decision function to build the votes array |
| LOW | nltk/tbl/rule.py | 1 | # Natural Language Toolkit: Transformation-based learning |
| LOW | nltk/stem/arlstem.py | 1 | # |
| LOW | nltk/stem/rslp.py | 1 | # Natural Language Toolkit: RSLP Stemmer |
| LOW | nltk/stem/snowball.py | 1 | # |
| LOW | nltk/stem/porter.py | 621 | # Earlier in step2b we had the rules: |
| LOW | nltk/sentiment/vader.py | 1 | # Natural Language Toolkit: vader |
| LOW | nltk/sentiment/util.py | 881 | demo_tweets(naive_bayes) |
| LOW | nltk/draw/cfg.py | 1 | # Natural Language Toolkit: CFG visualization |
| LOW | nltk/draw/cfg.py | 21 | # - the user can drag the treelet onto one of those (or click on them?) |
| LOW | nltk/draw/cfg.py | 301 | else: |
| 19 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | nltk/util.py | 251 | # FIX: Use is_relative_to for robust boundary check |
| LOW | nltk/collections.py | 267 | # If the slice is small enough, just use a tuple. |
| LOW | nltk/text.py | 121 | # nothing in common -- just return an empty freqdist. |
| LOW | nltk/probability.py | 1330 | # Simple Good-Turing. As a smoothing curve they simply use a power curve: |
| LOW | nltk/featstruct.py | 319 | # their children a second time, so just return true. |
| LOW | nltk/data.py | 978 | # If we've cached the resource, then just return it. |
| LOW | nltk/data.py | 1550 | # If nothing's buffered, then just return our current filepos: |
| LOW | nltk/app/chunkparser_app.py | 715 | # just use the old evaluation values. |
| LOW | nltk/test/unit/test_downloader.py | 65 | # Cannot mock a zip here as we are trying to validate file checksums, so just create a simple one with the XML |
| LOW | nltk/translate/ribes_score.py | 284 | # To avoid this, we can just return the lowest possible score. |
| MEDIUM | nltk/sem/drt.py | 151 | """This method serves as a hook for other logic parsers that |
| MEDIUM | nltk/sem/drt.py | 156 | """This method serves as a hook for other logic parsers that |
| MEDIUM | nltk/sem/logic.py | 433 | """This method serves as a hook for other logic parsers that |
| MEDIUM | nltk/sem/logic.py | 471 | """This method serves as a hook for other logic parsers that |
| MEDIUM | nltk/sem/logic.py | 492 | """This method serves as a hook for other logic parsers that |
| LOW | nltk/corpus/__init__.py | 194 | # [XX] This should probably just use TaggedCorpusReader: |
| LOW | nltk/corpus/reader/verbnet.py | 167 | # File identifier: just return the xml. |
| LOW | nltk/corpus/reader/framenet.py | 1138 | # as it's easier to just call frame(). |
| LOW | nltk/corpus/reader/semcor.py | 198 | # solution: just use the lemma name as a string |
| LOW | nltk/parse/chart.py | 1171 | # just return (no new edges to add). |
| LOW | nltk/parse/featurechart.py | 375 | # just return (no new edges to add). |
| LOW | nltk/parse/featurechart.py | 560 | # already in the chart, then just return it as-is. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | nltk/app/chunkparser_app.py | 114 | #: for a list of tags you can use for colorizing. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | nltk/app/chartparser_app.py | 628 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | nltk/app/nemo_app.py | 18 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna ali |
| LOW | nltk/app/nemo_app.py | 18 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna ali |