From mahout-user-return-466-apmail-lucene-mahout-user-archive=lucene.apache.org@lucene.apache.org Tue Apr 21 05:03:41 2009 Return-Path: Delivered-To: apmail-lucene-mahout-user-archive@minotaur.apache.org Received: (qmail 72069 invoked from network); 21 Apr 2009 05:03:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Apr 2009 05:03:41 -0000 Received: (qmail 32750 invoked by uid 500); 21 Apr 2009 05:03:41 -0000 Delivered-To: apmail-lucene-mahout-user-archive@lucene.apache.org Received: (qmail 32661 invoked by uid 500); 21 Apr 2009 05:03:40 -0000 Mailing-List: contact mahout-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mahout-user@lucene.apache.org Delivered-To: mailing list mahout-user@lucene.apache.org Received: (qmail 32651 invoked by uid 99); 21 Apr 2009 05:03:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2009 05:03:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of recom.team@gmail.com designates 209.85.219.179 as permitted sender) Received: from [209.85.219.179] (HELO mail-ew0-f179.google.com) (209.85.219.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2009 05:03:32 +0000 Received: by ewy27 with SMTP id 27so2304624ewy.5 for ; Mon, 20 Apr 2009 22:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=Xid1a/iTu0zt50n5ns6/6qh60x0+fi3BXZgJvx7zswE=; b=Xsrh8qgkzBkOOxXjxypdM6Sd5t35iy3Janrw+R0Eb+85o7OIBVcEuSDItcZ5+8S6tW LnYZDjhx1HCQS5JZdJBRk/h8wFZFy7aZ3sRdEJgofUas4+SojAG1CEFJ0cARMTG95A+k nuGybyDJdP2aBYflKeyUPvGphfGGmszJQy9aQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=da+CVDNyopXyd2LeJNpRzq8ssz3qX+qAJMOaffQjWRFTNsnsMKp4WeSpm813P0gHYl lx+S7p6DgPfJDpRz+GqoCrx1Mkwllano51325rcQJN826xoPPgUnptD/Zhw5UQPjvEIE dnh5plWy4IQ9VFUw081HK7GPj4Kim+LArsbZ8= MIME-Version: 1.0 Received: by 10.216.1.69 with SMTP id 47mr573405wec.224.1240290191510; Mon, 20 Apr 2009 22:03:11 -0700 (PDT) In-Reply-To: References: Date: Mon, 20 Apr 2009 22:03:11 -0700 Message-ID: Subject: Re: Taste as External Web Server From: Matthew Roberson To: mahout-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016364d293348913904680990a3 X-Virus-Checked: Checked by ClamAV on apache.org --0016364d293348913904680990a3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit will be able to get back to you regarding the jar file in a couple of days...waiting on jar file from colleague but sounds like that should work. Have another question though... btw using FileDataModel and RecommenderServlet to run slope one Recommender as web service. I wanted to update the datamodel for each http request as more user preference data will be generated with each new request. Would this be handled by a call to the reload() function contained within FileDataModel.java for each HTTP request? It appears that this is the function call that begins the process of updating the datamodel via a call to processfile(). Also, the reload function requires all ratings files to be uploaded to update the datamodel. I assume this is done because the Map containing users and their preferences is local only to the processfile() method. I was planning on making this Map global so that I can update the datamodel without having to upload all the ratings files. Do you see any pitfalls in this plan? -- Matt On Mon, Apr 20, 2009 at 12:08 AM, Sean Owen wrote: > Ultimately they need to get into WEB-INF/lib in the .war file. You can > unpack/repack the .war file to accomplish this, either manually or > with an Ant script. Or I believe that anything in taste-web/lib will > get bundled into the .war file as well, within the new pom.xml script > (Grant might be able to correct me there). Either of those work out? > > On Mon, Apr 20, 2009 at 6:16 AM, Matthew Roberson > wrote: > > I wanted to use Taste as an external web server. I have been able to set > up > > Taste as such. > > > > However, I need to modify the RecommenderServlet.java file to include > some > > code that will preprocess user data/item content data in order to produce > > the "ratings.txt" file. > > > > The included code has some dependencies, and I was wondering where to > > include the .jar file resolving these dependencies such that they are > > included within the .war file and recognized by the RecommenderServlet > > application. > > > > I hope my question makes sense. ;) > > > > -- Matthew > > > --0016364d293348913904680990a3--