Return-Path: X-Original-To: apmail-devicemap-commits-archive@www.apache.org Delivered-To: apmail-devicemap-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B69317812 for ; Sat, 1 Aug 2015 20:21:32 +0000 (UTC) Received: (qmail 17022 invoked by uid 500); 1 Aug 2015 20:21:32 -0000 Delivered-To: apmail-devicemap-commits-archive@devicemap.apache.org Received: (qmail 16996 invoked by uid 500); 1 Aug 2015 20:21:31 -0000 Mailing-List: contact commits-help@devicemap.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@devicemap.apache.org Delivered-To: mailing list commits@devicemap.apache.org Received: (qmail 16987 invoked by uid 99); 1 Aug 2015 20:21:31 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Aug 2015 20:21:31 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id C33ADAC04C5 for ; Sat, 1 Aug 2015 20:21:31 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1693756 - in /devicemap/trunk/data/2.0/reference/d: ./ patterns.json test.json Date: Sat, 01 Aug 2015 20:21:31 -0000 To: commits@devicemap.apache.org From: rezan@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150801202131.C33ADAC04C5@hades.apache.org> 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" + } + ] +}