You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devicemap.apache.org by re...@apache.org on 2015/08/01 22:21:31 UTC
svn commit: r1693756 - in /devicemap/trunk/data/2.0/reference/d: ./
patterns.json test.json
Author: rezan
Date: Sat Aug 1 20:21:31 2015
New Revision: 1693756
URL: http://svn.apache.org/r1693756
Log:
domain d for ranking
Added:
devicemap/trunk/data/2.0/reference/d/
devicemap/trunk/data/2.0/reference/d/patterns.json
devicemap/trunk/data/2.0/reference/d/test.json
Added: devicemap/trunk/data/2.0/reference/d/patterns.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/d/patterns.json?rev=1693756&view=auto
==============================================================================
--- devicemap/trunk/data/2.0/reference/d/patterns.json (added)
+++ devicemap/trunk/data/2.0/reference/d/patterns.json Sat Aug 1 20:21:31 2015
@@ -0,0 +1,97 @@
+{
+ "specVersion": 2.0,
+ "type": "pattern",
+ "domain": "reference_d",
+ "domainVersion": "1.0",
+ "description": "reference domain d, ranking",
+ "publishDate": "2015-08-01T15:18:43-0400",
+ "inputParser": {
+ "tokenSeperators": [" "]
+ },
+ "patternSet": {
+ "patterns": [
+ {
+ "patternId": "a",
+ "rankType": "Weak",
+ "patternType": "Simple",
+ "patternTokens": ["aaa"]
+ },
+ {
+ "patternId": "b",
+ "rankType": "Weak",
+ "patternType": "Simple",
+ "patternTokens": ["bbb"]
+ },
+ {
+ "patternId": "c",
+ "rankType": "Weak",
+ "patternType": "Simple",
+ "patternTokens": ["cccc"]
+ },
+ {
+ "patternId": "de",
+ "rankType": "Weak",
+ "patternType": "SimpleAnd",
+ "patternTokens": ["ddd", "eee"]
+ },
+ {
+ "patternId": "1",
+ "rankType": "None",
+ "rankValue": -100,
+ "patternType": "Simple",
+ "patternTokens": ["1"]
+ },
+ {
+ "patternId": "2",
+ "rankType": "None",
+ "patternType": "Simple",
+ "patternTokens": ["2"]
+ },
+ {
+ "patternId": "3",
+ "rankType": "None",
+ "rankValue": 100,
+ "patternType": "Simple",
+ "patternTokens": ["3"]
+ },
+ {
+ "patternId": "4",
+ "rankType": "Weak",
+ "rankValue": -100,
+ "patternType": "Simple",
+ "patternTokens": ["4"]
+ },
+ {
+ "patternId": "5",
+ "rankType": "Weak",
+ "patternType": "Simple",
+ "patternTokens": ["5"]
+ },
+ {
+ "patternId": "6",
+ "rankType": "Weak",
+ "rankValue": 100,
+ "patternType": "Simple",
+ "patternTokens": ["6"]
+ },
+ {
+ "patternId": "7",
+ "rankType": "Strong",
+ "patternType": "Simple",
+ "patternTokens": ["7"]
+ },
+ {
+ "patternId": "zz",
+ "rankType": "Strong",
+ "patternType": "Simple",
+ "patternTokens": ["zz"]
+ },
+ {
+ "patternId": "yz",
+ "rankType": "Strong",
+ "patternType": "SimpleAnd",
+ "patternTokens": ["yy", "zz"]
+ }
+ ]
+ }
+}
Added: devicemap/trunk/data/2.0/reference/d/test.json
URL: http://svn.apache.org/viewvc/devicemap/trunk/data/2.0/reference/d/test.json?rev=1693756&view=auto
==============================================================================
--- devicemap/trunk/data/2.0/reference/d/test.json (added)
+++ devicemap/trunk/data/2.0/reference/d/test.json Sat Aug 1 20:21:31 2015
@@ -0,0 +1,62 @@
+{
+ "specVersion": 2.0,
+ "type": "test",
+ "domain": "reference_d",
+ "domainVersion": "1.0",
+ "description": "reference domain d test suite",
+ "publishDate": "2015-08-01T15:18:43-0400",
+ "tests": [
+ {
+ "input": "test aaa bbb done",
+ "resultPatternId": "a"
+ },
+ {
+ "input": "test bbb aaa done",
+ "resultPatternId": "b"
+ },
+ {
+ "input": "test bbb aaa cccc done",
+ "resultPatternId": "c"
+ },
+ {
+ "input": "test bbb aaa eee cccc ddd done",
+ "resultPatternId": "de"
+ },
+ {
+ "input": "1",
+ "resultPatternId": "1"
+ },
+ {
+ "input": "1 2",
+ "resultPatternId": "2"
+ },
+ {
+ "input": "1 2 3",
+ "resultPatternId": "3"
+ },
+ {
+ "input": "1 2 3 4",
+ "resultPatternId": "4"
+ },
+ {
+ "input": "1 2 3 4 5",
+ "resultPatternId": "5"
+ },
+ {
+ "input": "1 2 3 4 5 6",
+ "resultPatternId": "6"
+ },
+ {
+ "input": "1 2 3 4 5 6 7",
+ "resultPatternId": "7"
+ },
+ {
+ "input": "zz",
+ "resultPatternId": "zz"
+ },
+ {
+ "input": "yy zz",
+ "resultPatternId": "yz"
+ }
+ ]
+}