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 Mon, 12 Jan 2015 04:36:30 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=24&rev2=25

   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 ==
  
@@ -191, +194 @@

   :: Strong patterns are ranked higher than Weak and None. The Rank``Value is ignored and
they are ranked by their position in the pattern stream. Specifically, the last matched token
position. The lower the position, the higher the rank. When a Strong pattern is found, the
pattern matching step can stop and this pattern can be returned without analyzing the rest
of the stream. This is because its impossible for another pattern to rank higher.
  
   Weak::
-  :: Weak patterns are ranked below Strong but above None. A Weak pattern can only be returned
in the absence of a Strong pattern. Weak patterns always rank higher than None patterns, regardless
of their Rank``Value. The Rank``Value is used to rank between successfully matched Weak patterns.
+  :: Weak patterns are ranked below Strong but above None. A Weak pattern can only be returned
in the absence of a Strong candidate. Weak patterns always rank higher than None patterns,
regardless of their Rank``Value. The Rank``Value is used to rank between other Weak patterns.
  
   None::
-  :: None patterns are ranked below Strong and Weak. A None pattern can only be returned
in the absence of successful Strong and Weak patterns. The Rank``Value is used to rank between
successfully matched None patterns.
+  :: None patterns are ranked below Strong and Weak. A None pattern can only be returned
in the absence of Strong and Weak candidates. The Rank``Value is used to rank between other
None patterns.
  
- In the case where 2 or more patterns have the same Rank``Type and Rank``Value resulting
in a tie,
+ In the case where 2 or more candidates have the same Rank``Type and Rank``Value resulting
in a tie,
- the pattern with the longest concatenated matched pattern length is used. If that results
in
+ the candidate with the longest concatenated matched pattern length is used. If that results
in
- another tie, the pattern with the first matched token found is returned.
+ another tie, the candidate with the first matched token found is returned.
  
- If 2 or more patterns share the same Pattern``Id, then only one Pattern``Type
- needs to match for this pattern to be a candidate.
+ 
+ === Notes ===
  
  If no candidate patterns are found, the Default``Id is returned. If no
  Default``Id is defined, a null pattern is returned.
- 
- 
- === Notes ===
  
  2 or more patterns cannot have identical Rank``Type, Rank``Value, and matched tokens. This
is undefined behavior since the patterns are identical. The pattern the classifier chooses
can be random.
  

Mime
View raw message