Skip to content

Commit 10f1257

Browse files
authored
Merge pull request #165 from clamsproject/register/0-text-slicer.v1.0
App Submitted - text-slicer.v1.0
2 parents a0932ca + a1a17ca commit 10f1257

File tree

5 files changed

+125
-1
lines changed

5 files changed

+125
-1
lines changed

docs/_apps/text-slicer/v1.0/index.md

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
layout: posts
3+
classes: wide
4+
title: "Text Slicer (v1.0)"
5+
date: 2024-07-02T01:30:06+00:00
6+
---
7+
## About this version
8+
9+
- Submitter: [bohJiang12](https://github.com/bohJiang12)
10+
- Submission Time: 2024-07-02T01:30:06+00:00
11+
- Prebuilt Container Image: [ghcr.io/clamsproject/app-text-slicer:v1.0](https://github.com/clamsproject/app-text-slicer/pkgs/container/app-text-slicer/v1.0)
12+
- Release Notes
13+
14+
> first version of text-slicer
15+
16+
## About this app (See raw [metadata.json](metadata.json))
17+
18+
**Slice text snippets from a provided text document given time frames**
19+
20+
- App ID: [http://apps.clams.ai/text-slicer/v1.0](http://apps.clams.ai/text-slicer/v1.0)
21+
- App License: Apache2
22+
- Source Repository: [https://github.com/clamsproject/app-text-slicer](https://github.com/clamsproject/app-text-slicer) ([source tree of the submitted version](https://github.com/clamsproject/app-text-slicer/tree/v1.0))
23+
24+
25+
#### Inputs
26+
(**Note**: "*" as a property value means that the property is required but can be any value.)
27+
28+
- [http://mmif.clams.ai/vocabulary/TimeFrame/v5](http://mmif.clams.ai/vocabulary/TimeFrame/v5) (required)
29+
(of any properties)
30+
31+
- [http://mmif.clams.ai/vocabulary/TextDocument/v1](http://mmif.clams.ai/vocabulary/TextDocument/v1) (required)
32+
(of any properties)
33+
34+
35+
36+
#### Configurable Parameters
37+
(**Note**: _Multivalued_ means the parameter can have one or more values.)
38+
39+
- `containLabel`: required
40+
41+
- Type: string
42+
- Multivalued: True
43+
44+
45+
> A list of labels that user expect TimeFrames contain.<br/>Labels can be chosen from but not limited to:<br/>['bars', 'tones', 'bars-and-tones','speech','noise',<br/> 'music', 'slate', 'chyron', 'lower-third', 'credits']<br/>Users are required to select at least one label. Otherwise, errors would be thrown instead
46+
- `pretty`: optional, defaults to `false`
47+
48+
- Type: boolean
49+
- Multivalued: False
50+
- Choices: **_`false`_**, `true`
51+
52+
53+
> The JSON body of the HTTP response will be re-formatted with 2-space indentation
54+
55+
56+
#### Outputs
57+
(**Note**: "*" as a property value means that the property is required but can be any value.)
58+
59+
(**Note**: Not all output annotations are always generated.)
60+
61+
- [http://mmif.clams.ai/vocabulary/TextDocument/v1](http://mmif.clams.ai/vocabulary/TextDocument/v1)
62+
(of any properties)
63+
64+
- [http://mmif.clams.ai/vocabulary/Alignment/v1](http://mmif.clams.ai/vocabulary/Alignment/v1)
65+
(of any properties)
66+
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "Text Slicer",
3+
"description": "Slice text snippets from a provided text document given time frames",
4+
"app_version": "v1.0",
5+
"mmif_version": "1.0.5",
6+
"app_license": "Apache2",
7+
"identifier": "http://apps.clams.ai/text-slicer/v1.0",
8+
"url": "https://github.com/clamsproject/app-text-slicer",
9+
"input": [
10+
{
11+
"@type": "http://mmif.clams.ai/vocabulary/TimeFrame/v5",
12+
"required": true
13+
},
14+
{
15+
"@type": "http://mmif.clams.ai/vocabulary/TextDocument/v1",
16+
"required": true
17+
}
18+
],
19+
"output": [
20+
{
21+
"@type": "http://mmif.clams.ai/vocabulary/TextDocument/v1"
22+
},
23+
{
24+
"@type": "http://mmif.clams.ai/vocabulary/Alignment/v1"
25+
}
26+
],
27+
"parameters": [
28+
{
29+
"name": "containLabel",
30+
"description": "A list of labels that user expect TimeFrames contain.\nLabels can be chosen from but not limited to:\n['bars', 'tones', 'bars-and-tones','speech','noise',\n 'music', 'slate', 'chyron', 'lower-third', 'credits']\nUsers are required to select at least one label. Otherwise, errors would be thrown instead",
31+
"type": "string",
32+
"multivalued": true
33+
},
34+
{
35+
"name": "pretty",
36+
"description": "The JSON body of the HTTP response will be re-formatted with 2-space indentation",
37+
"type": "boolean",
38+
"default": false,
39+
"multivalued": false
40+
}
41+
]
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"time": "2024-07-02T01:30:06+00:00",
3+
"submitter": "bohJiang12",
4+
"image": "ghcr.io/clamsproject/app-text-slicer:v1.0",
5+
"releasenotes": "first version of text-slicer\n\n"
6+
}

docs/_data/app-index.json

+10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
{
2+
"http://apps.clams.ai/text-slicer": {
3+
"description": "Slice text snippets from a provided text document given time frames",
4+
"latest_update": "2024-07-02T01:30:06+00:00",
5+
"versions": [
6+
[
7+
"v1.0",
8+
"bohJiang12"
9+
]
10+
]
11+
},
212
"http://apps.clams.ai/swt-detection": {
313
"description": "Detects scenes with text, like slates, chyrons and credits.",
414
"latest_update": "2024-06-28T02:03:53+00:00",

docs/_data/apps.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)