Documentation Swiss Law widget¶

Make a corpus with Swiss law documents.
1 Introduction¶
1.2 Signals¶
Input: None
Outputs:
Text data
The selected Swiss law documents with the requested segmentation.
1.3 Description¶
Create a widget for Orange Textable (v3.7) to import the main Swiss legal texts from XML file from the site fedlex.admin.ch. SwissLaw is a widget included in Orange3-Textable-Prototypes, a tool developed with Orange 3 software using the Python language.
1.4 Interface¶

Figure 1: Swiss Law widget interface.¶
2. Technique¶
2.1 Installation¶
To use the SwissLaw widget, you need to have Orange 3 and Orange3-Textable-Prototypes installed. Follow the instructions below to install the widget:
Install Orange 3: Orange 3 Installation Guide
Install Textable Prototypes: Textable Prototypes installation guide
2.2 Using Widget¶
Launch Orange 3 and go to the “Textable Prototypes” section.
Drag and drop the “Swiss Law” widget onto the work area.
- Configure the widget by selecting the desired options.
- 3a. Select the desired legal document. The Select Law Document section allows the user to choose a law document, a segmentation and a language.
- 3b. Click on “Add to corpus” to add the item to the corpus, the Corpus section allows the user to clear or remove selected document from the corpus.
- 3c. Click on “send” to send the segmentation. The Send button triggers the emission of a segmentation to the output connection(s). When selected, the Send automatically checkbox disables the button and the widget attempts to automatically emit a segmentation at every modification of its interface.
Connect the SwissLaw widget to other widgets or components in your workflow.
Run the workflow to access and analyse SwissLaw documents.
2.3 Messages¶
2.3.1 Information¶
- <n> segments sent to output (<m> characters).
This confirms that the widget has operated properly.
2.3.2 Warnings¶
- Settings were changed, please click ‘Send’ when ready.
Settings have changed but the Send automatically checkbox has not been selected, so the user is prompted to click the Send button (or equivalently check the box) in order for computation and data emission to proceed.
- Your corpus is empty, please add some law texts first.
The corpus is empty, so the user has to add some law documents before sending.