From 849bc55c7e941956998b18d1d8cdf3ed995735bf Mon Sep 17 00:00:00 2001 From: Erin van der Veen Date: Wed, 20 Dec 2017 08:20:27 +0100 Subject: Fix typo in Implementation; add syntax highlighting to python script --- Implementation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Implementation.md b/Implementation.md index 1a81e6f..c19f119 100644 --- a/Implementation.md +++ b/Implementation.md @@ -104,7 +104,7 @@ def get(dbpediaid): ### `run.py` -- `queries_stopped.json` lists all query terms. We load this file ones, then +- `queries_stopped.json` lists all query terms. We load this file once, then process a run from `stdin`. ```python @@ -154,7 +154,7 @@ def match(value, terms): - `get` simply gets the file that we stored with `scrape.py`: -``` +```python def get(dbpediaid): outfile = os.path.join(DATADIR, quote_plus(dbpediaid) + '.json') if not os.path.isfile(outfile): -- cgit v1.2.3