Return-Path: X-Original-To: apmail-mahout-dev-archive@www.apache.org Delivered-To: apmail-mahout-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 730137592 for ; Thu, 1 Dec 2011 08:50:04 +0000 (UTC) Received: (qmail 98504 invoked by uid 500); 1 Dec 2011 08:50:03 -0000 Delivered-To: apmail-mahout-dev-archive@mahout.apache.org Received: (qmail 98332 invoked by uid 500); 1 Dec 2011 08:50:03 -0000 Mailing-List: contact dev-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mahout.apache.org Delivered-To: mailing list dev@mahout.apache.org Received: (qmail 98306 invoked by uid 99); 1 Dec 2011 08:50:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 08:50:02 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 08:50:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 40108AAA5C for ; Thu, 1 Dec 2011 08:49:41 +0000 (UTC) Date: Thu, 1 Dec 2011 08:49:41 +0000 (UTC) From: "Frank Scholten (Commented) (JIRA)" To: dev@mahout.apache.org Message-ID: <676966557.30159.1322729381263.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <238608719.10587.1319033290690.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAHOUT-845) Make cluster top terms code more reusable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAHOUT-845?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13160744#comment-13160744 ] Frank Scholten commented on MAHOUT-845: --------------------------------------- I agree that the original solution is too invasive and the feature you are describing is nice for inspection. One suggestion I have is to separate the JSON formatting from retrieving the top terms. > Make cluster top terms code more reusable > ----------------------------------------- > > Key: MAHOUT-845 > URL: https://issues.apache.org/jira/browse/MAHOUT-845 > Project: Mahout > Issue Type: Improvement > Components: Clustering > Affects Versions: 0.5 > Reporter: Frank Scholten > Priority: Minor > Fix For: 0.6 > > Attachments: MAHOUT-845.patch, MAHOUT-845.patch, MAHOUT-845.patch > > > When working with Mahout text clustering I find that I keep writing code similar to the contents of > public static String getTopFeatures(Cluster cluster, String[] dictionary, int numTerms) > in ClusterDumper in order to determine cluster labels. > I think it would be useful if (parts of) this code are added to the cluster or vector API so that you could do something like > Cluster cluster = ... // get the cluster from seq file iterable > String clusterLabel = cluster.getTopTerms(1, dictionary); // Do something with the label > I think this would make it easier to export and post-process clustering results, like indexing or storing them elsewhere. > Thoughts? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira