devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Devicemap Wiki] Update of "Patterns2" by rezan
Date Tue, 13 Jan 2015 02:49:56 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Devicemap Wiki" for change notification.

The "Patterns2" page has been changed by rezan:
https://wiki.apache.org/devicemap/Patterns2?action=diff&rev1=26&rev2=27

  The following definitions are used:
  
   input string::
-  :: this is the string to be classified
+  :: the string to be classified
  
   token stream::
-  :: this is the list of tokens that result from the Input Parsing phase
+  :: the list of tokens that result from the Input Parsing phase
  
   pattern::
-  :: this is a complete pattern definition with an id, type, rank, and pattern tokens
+  :: a complete pattern definition with an id, type, rank, and pattern tokens
  
   pattern tokens::
-  :: these are the individual pattern strings which comprise a pattern type
+  :: the individual pattern strings which comprise a pattern type
  
   pattern type::
-  :: this defines how the pattern tokens must be matched against the token stream
+  :: defines how the pattern tokens must be matched against the token stream
  
   matched tokens::
-  :: these are pattern tokens which are successfully matched in the token stream
+  :: pattern tokens which are successfully matched in the token stream
  
   pattern rank::
-  :: this ranks the pattern against other patterns
+  :: ranks the pattern against other patterns
  
   candidate::
-  :: this is a pattern which has successfully matched a pattern type in the token stream
+  :: a pattern which has successfully matched a pattern type in the token stream
  
   pattern set::
   :: the set of all patterns described in the pattern file
@@ -182, +182 @@

   Simple::
   :: Only one pattern token must appear in the token stream.
  
- If 2 or more patterns share the same Pattern``Id, then only one Pattern``Type
- needs to match for that pattern to be a candidate.
- 
  
  == RankType ==
  
@@ -208, +205 @@

  
  If no candidate patterns are found, the Default``Id is returned. If no
  Default``Id is defined, a null pattern is returned.
+ 
+ It is valid for multpile patterns to share the same Pattern``Id. These patterns function
completely independent of each other.
  
  2 or more patterns cannot have identical Rank``Type, Rank``Value, and pattern tokens. This
results in undefined behavior when the patterns are candidates since they are identical. The
classifier is allowed to choose any one candidate in this situation, so the result can be
random.
  

Mime
View raw message