Skip to content

Commit

Permalink
Merge pull request #265 from Living-with-machines/261-update-docs-lic…
Browse files Browse the repository at this point in the history
…ense

Update documentation and license
  • Loading branch information
mcollardanuy authored Jul 28, 2023
2 parents c3b4ea0 + 2c50edd commit 7fae8f9
Show file tree
Hide file tree
Showing 23 changed files with 1,654 additions and 1,219 deletions.
5 changes: 4 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
MIT License

Copyright (c) 2021 Living with Machines
Copyright (c) 2023 The Alan Turing Institute, British Library Board, Queen Mary
University of London, King's College London, University of East Anglia, The
University of Exeter and the Chancellor, Masters and Scholars of the University
of Cambridge

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
532 changes: 23 additions & 509 deletions README.md

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,13 @@
import os
import sys

sys.path.insert(0, os.path.abspath("."))
sys.path.insert(0, os.path.abspath("../.."))
sys.path.insert(0, os.path.abspath("../geoparser"))
sys.path.insert(0, os.path.abspath("../../"))

# -- Project information -----------------------------------------------------

project = "T-Res"
copyright = "2023 Living with Machines"
author = "Federico Nanni"
copyright = "2023 The Alan Turing Institute, British Library Board, Queen Mary University of London, King's College London, University of East Anglia, The University of Exeter and the Chancellor, Masters and Scholars of the University of Cambridge"
author = "Living with Machines"

# The full version, including alpha/beta/rc tags
release = "0.1.0"
Expand Down
51 changes: 51 additions & 0 deletions docs/source/experiments/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Experiments and evaluation
==========================

Follow these steps to reproduce the experiments in our paper.

1. Obtain the external resources
--------------------------------

Follow the instructions in the ":doc:`resources`" page in the documentation
to obtain the resources required for running the experiments.

2. Preparing the data
-------------------------

To create the datasets that we use in the experiments presented in the paper,
run the following command from the ``./experiments/`` folder:

.. code-block:: bash
$ python ./prepare_data.py
This script takes care of downloading the LwM and HIPE datasets and format them
as needed in the experiments.

3. Running the experiments
--------------------------

To run the experiments, run the following script from the ``./experiments/``
folder:

.. code-block:: bash
$ python ./toponym_resolution.py
This script does runs for all different scenarios reported in the experiments in
the paper.

4. Evaluate
-----------

To evaluate the different approaches and obtain a table with results such as the
one provided in the paper, go to the ``./evaluation/`` directory. There, you
should clone the `HIPE scorer <https://github.com/hipe-eval/HIPE-scorer>`_. We
are using the code version at commit ``50dff4e``, and have added the line
``return eval_stats`` at the end of the ``get_results()`` function. From
``./evaluation/``, run the following script to obtain the results in latex
format:

.. code-block:: bash
$ python display_results.py
Loading

0 comments on commit 7fae8f9

Please sign in to comment.