metron-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickwallen <...@git.apache.org>
Subject [GitHub] metron pull request #667: METRON-1061 Add FUZZY_SCORE STELLAR function
Date Tue, 15 Aug 2017 00:11:47 GMT
Github user nickwallen commented on a diff in the pull request:

    https://github.com/apache/metron/pull/667#discussion_r133092693
  
    --- Diff: metron-stellar/stellar-common/README.md ---
    @@ -411,6 +412,14 @@ In the core language functions, we support basic functional programming
primitiv
         * format - string
         * arguments... - object(s)
       * Returns: A formatted string.
    +  
    +### `FUZZY_SCORE`
    +  * Description: Returns the Fuzzy Score which indicates the similarity score between
two strings. One point is given for every matched character. Subsequent matches yield two
bonus points. A higher score indicates a higher similarity.
    +  * Input:
    +    * string - The full term that should be matched against.
    +    * string - The query that will be matched against a term.
    +    * string - The IETF BCP 47 language code to use.
    --- End diff --
    
    Can we document the common language codes here, so I can easily see them when running
`?FUZZY_SCORE` in the REPL?  I'll let you define "common languages", but I assume English,
Spanish, at least.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message