Skip to content

Commit b0d4565

Browse files
committed
added FLAT viewer #42
1 parent f4e5dcf commit b0d4565

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

codemeta.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@type": "SoftwareSourceCode",
1111
"identifier": "piccl",
1212
"name": "PICCL",
13-
"version": "0.7.0",
13+
"version": "0.7.1",
1414
"description": "A set of workflows for corpus building through OCR, post-correction, modernization of historic language and Natural Language Processing",
1515
"license": "https://spdx.org/licenses/GPL-3.0",
1616
"url": "https://github.com/LanguageMachines/PICCL",

webservice/picclservice/piccl.config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ port: 8080
22
root: "{{VIRTUAL_ENV}}/piccl.clam"
33
piccldir: "{{VIRTUAL_ENV}}/opt/PICCL"
44
piccldataroot: "{{VIRTUAL_ENV}}/opt/PICCL"
5+
flaturl: "https://flat.science.ru.nl"

webservice/picclservice/picclservice.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#An informative description for this system (this should be fairly short, about one paragraph, and may not contain HTML)
4949
SYSTEM_DESCRIPTION = "PICCL offers a workflow for corpus building and builds on a variety of tools. The primary component of PICCL is TICCL; a Text-induced Corpus Clean-up system, which performs spelling correction and OCR post-correction (normalisation of spelling variants etc)."
5050

51-
SYSTEM_VERSION = "0.7.0" #also change in codemeta.json and setup.py
51+
SYSTEM_VERSION = "0.7.1" #also change in codemeta.json and setup.py
5252

5353
SYSTEM_AUTHOR = "Martin Reynaert, Maarten van Gompel, Ko van der Sloot"
5454

@@ -85,6 +85,8 @@
8585

8686
#USERS = { user1': '4f8dh8337e2a5a83734b','user2': pwhash('username', REALM, 'secret') }
8787

88+
FLATURL = "https://flat.science.ru.nl"
89+
8890

8991
#The secret key is used internally for cryptographically signing session data, in production environments, you'll want to set this to a persistent value. If not set it will be randomly generated.
9092
#SECRET_KEY = 'mysecret'
@@ -217,6 +219,7 @@ def generateoutputtemplates(ocrinput=True,inputextension='.pdf'):
217219
if ocrinput:
218220
#do we have an OCR input stage? then we get OCR output
219221
outputtemplates += [OutputTemplate('ocrfolia', FoLiAXMLFormat, 'OCR Output (Tesseract)',
222+
FLATViewer(url=FLATURL, mode='viewer'),
220223
removeextension=inputextension,
221224
extension='ocr.folia.xml',
222225
multi=True,
@@ -232,6 +235,7 @@ def generateoutputtemplates(ocrinput=True,inputextension='.pdf'):
232235
),
233236
ParameterCondition(ticcl="yes", then=
234237
OutputTemplate('ticclfolia', FoLiAXMLFormat, 'OCR post-correction output (TICCL)',
238+
FLATViewer(url=FLATURL, mode='viewer'),
235239
removeextension=inputextension,
236240
extension='ticcl.folia.xml',
237241
multi=True,
@@ -240,13 +244,15 @@ def generateoutputtemplates(ocrinput=True,inputextension='.pdf'):
240244
ParameterCondition(frog="yes", then=
241245
#Frog was enabled, so we obtain Frog output:
242246
OutputTemplate('frogfolia', FoLiAXMLFormat, 'Linguistic enrichment output (Frog)',
247+
FLATViewer(url=FLATURL, mode='viewer'),
243248
removeextension=inputextension,
244249
extension='frogged.folia.xml',
245250
multi=True,
246251
),
247252
),
248253
ParameterCondition(ucto="yes", then=
249254
OutputTemplate('uctofolia', FoLiAXMLFormat, 'Tokeniser Output (ucto)',
255+
FLATViewer(url=FLATURL, mode='viewer'),
250256
removeextensions=[inputextension,"ticcl.folia.xml"],
251257
extension='tok.folia.xml',
252258
multi=True,

webservice/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name = "PICCL",
13-
version = "0.7.0", #also change in codemeta.json and picclservice.py
13+
version = "0.7.1", #also change in codemeta.json and picclservice.py
1414
author = "Martin Reynaert, Maarten van Gompel",
1515
author_email = "[email protected]",
1616
description = ("Webservice for PICCL; a set of workflows for corpus building through OCR, post-correction, modernization of historic language and Natural Language Processing"),

0 commit comments

Comments
 (0)