-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60bc8ff
commit 50e61f5
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Ontology | ||
======== | ||
|
||
Generate, edit, load and save ontologies | ||
|
||
**Inputs** | ||
|
||
- Words: A table of words. | ||
|
||
**Outputs** | ||
|
||
- Words: A table of words. | ||
|
||
The ontology widget enables various operations with ontologies: | ||
- Generate ontology from words on the input | ||
- Load existing ontology from a file or URL | ||
- Manually edit the ontology | ||
- Include word from the input in the existing ontology to the position where it fits best according to the embedding similarity | ||
- Save ontology to file | ||
|
||
![](images/Ontology.png) | ||
|
||
1. Switch between saved ontologies, add or remove ontology to the library, load or save ontology from/to file. | ||
2. Browse words from the widget's input, include selected terms automatically in the existing ontology with the `Include` button or grab a word from the list and drop it in the ontology on the right. | ||
3. (Re)Generate new ontology from all words in the tree on the right. | ||
4. Set whether the output list includes words in the subtree of selected words even if they are not selected. | ||
5. Fitness score of current ontology. | ||
6. Ontology editor and viewer. Drag and drop words to the desired position in the tree, add or remove words with the buttons at the bottom and undo or redo changes. | ||
7. Get help, add ontology to the report, or input and output. | ||
|
||
Example | ||
------- | ||
|
||
This example loads the proposals to the government from the URL | ||
`http://file.biolab.si/text-semantics/data/proposals-to-government-1k/`, | ||
preprocess texts, embedded texts to the vector space with the fastText embedding | ||
and shows t-SNE document map. We select a group of documents connected with the | ||
property-owning in the document map. Extract Keywords widget extracts keywords | ||
of selected subset and sends them to | ||
the Ontology widget. In the Ontology widget, we drag words from the Input list | ||
to the pane on the right and click the Generate button. After the widget generates | ||
the ontology, we can manually perform some minor changes to make ontology even more | ||
meaningful. | ||
|
||
|
||
![](images/Ontology-Example.png) |