.. meta:: :description: Orange Textable documentation, filtering segmentations using regexes :keywords: Orange, Textable, documentation, filter, segmentation, regex Filtering segmentations using regexes ===================================== In section :doc:`Using a segmentation to filter another `, we have seen how to use the :doc:`Intersect ` widget to exclude a specified list of words (so-called “stopwords”) from a segmentation. The :doc:`Select `. In the example of :ref:`figure 1 `, the widget is configured to exclude all incoming segments containing no more than 3 letters. Note that without the *beginning of segment* and *end of segment* anchors (``^`` and ``$``), all words containing *at least* a sequence of 1 to 3 letters–i.e. all the words–would be excluded. Note that :doc:`Select ` is connected to another widget, the main segmentation is being emitted. In order to send the segmentation of discarded segments instead, right-click on the outgoing connection and select **Reset Signals** (see :ref:`figure 2 ` below). .. _partitioning_segmentations_fig2: .. figure:: figures/select_example_schema.png :align: center :alt: Right-clicking on a connection and requesting to "Reset Signals" :scale: 80 % Figure 2: Right-clicking on a connection and requesting to **Reset Signals**. This opens the dialog shown on :ref:`figure 3 ` below, where the user can “drag-and-drop” from the gray box next to **Discarded data** up to the box next to **Segmentation**, thus replacing the existing connection. Clicking **OK** validates the modification and enables the discarded data to flow through the connection. .. _partitioning_segmentations_fig3: .. figure:: figures/select_example_reset_signals_dialog.png :align: center :alt: Dialog for modifying the connection between two widgets :scale: 80 % Figure 3: This dialog allows the user to select a non-default connection between two widgets. See also ----------------- - :doc:`Textable's Basics: Using a segmentation to filter another ` - :doc:`Reference: Select widget