Import text data from keyboard input.
Inputs:
Segmentation containing the text to be edited
Outputs:
Segmentation covering the input text
The Text Field widget enables the input of data by using a keyboard. It emits a segmentation containing a single unannotated segment covering the whole string. It can also be used to manually edit a previously imported string (imported from a text file or an URL).
The first example is used to demonstrate how to input text for further processing by using the Text Field widget. The widget is fairly easy to use. Place the widget on the canvas by choosing it from the list of widgets in the add-on or use the right-click to click on the canvas and select the widget from there. Double-click on it to open it and input the text by using your keyboard. Standard editing functions apply and you can copy and paste text from other sources as well. When finished, click the Send button (alternatively, tick Send automatically) and display the segmented data through any of the compatible outputs. We simply entered the text string This is a very simple example and chose to display it in the Display widget.
Our second example is used to demonstrate how to use the Text Field widget to manually edit imported strings of texts. We loaded Jane Austen’s Pride and Prejudice by using the URLs widget and because the text about Project Gutenberg had no use for us (and our further research) we decided to remove it by editing the input content in the Text Field widget.