class documentation
class TestSequenceFunctions(unittest.TestCase): (source)
Class containing unit tests for nltk.tgrep.
Method | test |
Test error handling of undefined tgrep operators. |
Method | test |
Test that comments are correctly filtered out of tgrep search strings. |
Method | test |
Test the Basic Examples from the TGrep2 manual. |
Method | test |
Test labeled nodes. |
Method | test |
Test that multiple (3 or more) conjunctions of node relations are handled properly. |
Method | test |
Test that tgrep search strings handles bytes and strs the same way. |
Method | test |
Test selecting nodes using case insensitive node names. |
Method | test |
Test node name matching with the search_leaves flag set to False. |
Method | test |
Test that the tgrep print operator ' is properly ignored. |
Method | test |
Test selecting nodes using quoted node names. |
Method | test |
Test regex matching on nodes. |
Method | test |
Test regex matching on nodes. |
Method | test |
Test a simple use of tgrep for finding nodes matching a given pattern. |
Method | test |
Test matching on nodes based on NLTK tree position. |
Method | test |
Test matching nodes based on precedence relations. |
Method | test |
Test matching sister nodes in a tree. |
Method | test |
Test that tokenization handles bytes and strs the same way. |
Method | test |
Test tokenization of the TGrep2 manual example patterns. |
Method | test |
Test tokenization of basic link types. |
Method | test |
Test tokenization of macro definitions. |
Method | test |
Test tokenization of labeled nodes. |
Method | test |
Test tokenization of node names. |
Method | test |
Test tokenization of quoting. |
Method | test |
Test tokenization of segmented patterns. |
Method | test |
Simple test of tokenization. |
Method | test |
Test that semicolons at the end of a tgrep2 search string won't cause a parse failure. |
Method | test |
Test defining and using tgrep2 macros. |
Method | tests |
Test matching nodes based on dominance relations. |
Method | tests |
Test matching nodes based on their index in their parent node. |