biolab / text-semantics

The package with scripts for semantic analyser project
MIT License
4 stars 5 forks source link

Word maps #23

Closed ajdapretnar closed 3 years ago

ajdapretnar commented 3 years ago

Example with word maps instead of document maps. Shows semantic similarity of words in law documents.

PrimozGodec commented 3 years ago

It looks ok to me. There is just a minor fix required. The script is not working properly anymore due to recent changes in the repository. Replacing line 5 in cell 2 to:

metadata = api.get_metadata("predlogi-vladi", sample_size=100, sampling_strategy='latest')

would fix it.

I also notice that there is this line present in the notebook:

Screenshot 2021-01-08 at 16 06 03

The last statement in a cell is always printed if not None. We can avoid those prints with placing ; at the end of the line where we do not want to see the print.

ajdapretnar commented 3 years ago

Fixed.