You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spaCy NLP wrapped as a CLAMS service, spaCy is distributed under the [MIT license](https://github.com/explosion/spaCy/blob/master/LICENSE).
5
5
6
-
## User instruction
6
+
The spaCy NLP module wrapped as a CLAMS service, spaCy is distributed under the [MIT license](https://github.com/explosion/spaCy/blob/master/LICENSE).
7
+
8
+
9
+
## User instructions
7
10
8
-
General user instructions for CLAMS apps is available at [CLAMS Apps documentation](https://apps.clams.ai/clamsapp).
11
+
General user instructions for CLAMS apps are available at [CLAMS Apps documentation](https://apps.clams.ai/clamsapp).
9
12
10
13
### System requirements
11
14
12
-
This requires Python 3.8 or higher. For local install of required Python modules see [requirements.txt](requirements.txt).
15
+
This requires Python 3.8 or higher. For local installation of required Python modules see [requirements.txt](requirements.txt).
16
+
17
+
#### Running as a local python program
18
+
19
+
To test just the wrapping code without using a server use the following:
20
+
21
+
```bash
22
+
python app.py -t example-mmif.json out.json
23
+
```
13
24
14
-
#### Using as local python programe
25
+
###Configurable runtime parameters
15
26
16
-
Use `python app.py -t example-mmif.json out.json` just to test the wrapping code without using a server.
27
+
For the full list of parameters, please refer to the app metadata from in the CLAMS App Directory at [https://apps.clams.ai/#spacy-wrapper](https://apps.clams.ai/#spacy-wrapper) or the [`metadata.py`](metadata.py) file in this repository.
17
28
18
-
### Configurable runtime parameter
29
+
### Input and output details
19
30
20
-
For the full list of parameters, please refer to the app metadata from [CLAMS App Directory](https://apps.clams.ai/clamsapp/) or [`metadata.py`](metadata.py) file in this repository.
31
+
The spaCy code will run on each text document in the input MMIF file. The file `example-input.json` has one text document in the top level *documents* property and two text documents in one of the views. The output file `example-output.json` has a new view for each of those text documents.
"@value": "Hello, this is Jim Lehrer with the NewsHour on PBS. In the nineteen eighties, barking dogs have increasingly become a problem in urban areas."
20
-
}
18
+
"text": {
19
+
"@value": "Hello, this is Jim Lehrer with the NewsHour on PBS. In the nineteen eighties, barking dogs have increasingly become a problem in urban areas."
0 commit comments