Operating system: | macOS / OS X, Linux, Windows |
Python version: | Python 3.6+ |
- Clone the repository
- Open terminal/cmd in the project directory and type the following commands:
pip install -r requirements.txt python -m spacy download en_core_web_sm python application.py
- Server is up and running at
http://localhost:5000/
from driver import run_t2wml
run_t2wml(data_file_path, wikified_output_path, t2wml_spec, output_directory, sheet_name, sparql_endpoint)
Arguments:
Mandatory Arguments:
data_file_path: string
wikified_output_path: string
t2wml_spec: string
output_directory: string
Optional Arguments:
sheet_name: string
sparql_endpoint: string
Default Values:
sparql_endpoint = "https://dsbox02.isi.edu:8888/bigdata/namespace/wdq/sparql"
Edit in /app_config.py
Output:
The function will create a directory structure in the output directory which will have the results.ttl and changes.tsv files.
Output Directory Structure:
output_directory/
├── excel_file_name/
│ └── sheet_name/
| ├── results.ttl
| └── changes.tsv
└── csv_file_name/
├── results.ttl
└── changes.tsv
- Open the GUI
- In Table Viewer,
- click Upload to open a table file (.csv/.xls/.xlsx)
- In Wikifier,
- In YAML Editor,
- type/paste in T2WML code, or
- click Upload to open a YAML file (.yaml)
- click Apply to highlight some regions in Table Viewer
- In Output,
- preview result by clicking cell in Table Viewer [demo], or
- click Download to get all results
Note: All screenshots below are captured in GUI v1.3. Minor inconsistencies may appear.
-
Installation failed due to
etk
?Run the following commands in terminal/cmd:
pip uninstall etk pip install https://github.com/usc-isi-i2/etk/archive/development.zip
-
Login failed or encountered an authentication error like
400 (OAuth2 Error)
?Access T2WML at
http://localhost:5000/
instead ofhttp://127.0.0.1:5000
. -
Encountered any other error not mentioned in the FAQs?
Post the issue in the T2WML repository along with a detailed description.