Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3B0AC200BF0 for ; Fri, 30 Dec 2016 15:29:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 39CB2160B32; Fri, 30 Dec 2016 14:29:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A9B29160B24 for ; Fri, 30 Dec 2016 15:28:59 +0100 (CET) Received: (qmail 31259 invoked by uid 500); 30 Dec 2016 14:28:58 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 31248 invoked by uid 99); 30 Dec 2016 14:28:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2016 14:28:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A6C912C1F5A for ; Fri, 30 Dec 2016 14:28:58 +0000 (UTC) Date: Fri, 30 Dec 2016 14:28:58 +0000 (UTC) From: "Rob Tompkins (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEXT-14) Create a generic class that calculates a distance based on a similarity score MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Dec 2016 14:29:00 -0000 [ https://issues.apache.org/jira/browse/TEXT-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15787768#comment-15787768 ] Rob Tompkins commented on TEXT-14: ---------------------------------- I've got an idea here. {code} Double distance(String s1, String s2) { return s1.length() + s2.length() - 2*similarityScore(s1, s2); } {code} > Create a generic class that calculates a distance based on a similarity score > ----------------------------------------------------------------------------- > > Key: TEXT-14 > URL: https://issues.apache.org/jira/browse/TEXT-14 > Project: Commons Text > Issue Type: Improvement > Reporter: Bruno P. Kinoshita > Priority: Minor > Labels: features, idea > Fix For: 1.x > > > From http://markmail.org/message/lkqcrm3f3qbu5heu > Seems like an interesting idea. Worth spending some time to investigate it later. -- This message was sent by Atlassian JIRA (v6.3.4#6332)