tagging

Should the descriptive tags associated with an entity be stored in a separate database table?

I have a Questions model, and just like StackOverflow, each question can be tagged with multiple descriptive tags by a user. What I'm trying to decide is whether it's necessary for the Tags associated with a question to be stored in a separate table in the database. Or could I store the Tags as a single field of the Questions table as...

Time frames for Standard score

For finding trending topics, I use the Standard score in combination with a moving average: z-score = ([current trend] - [average historic trends]) / [standard deviation of historic trends] (Thank you very much, Nixuz) Until now, I do it as follows: Whatever the time is, for the historic trends I simply go back 24h. Assuming we have...

LSA - Latent Semantic Analysis - How to code it in PHP?

Hello! I would like to implement Latent Semantic Analysis (LSA) in PHP in order to find out topics/tags for texts. Here is what I think I have to do. Is this correct? How can I code it in PHP? How do I determine which words to chose? I don't want to use any external libraries. I've already an implementation for the Singular Value Deco...

Any ideas on how to implement flickr's tags clustering system? (preferrably in Rails)

I'm mainly just looking for a discussion of approaches on how to go from decentralized, non-normalized, completely open user-submitted tags, to start making sense of all of it through combining them into those semantic groups they called "clusters". Does it take actual people to figure out what people actually mean by the tags used, or ...

How to tag texts automatically while remaining effectivness?

Let's say I've got a set of a million tags and a text that needs to be parsed for these and possibly new tags. The amount of tags here is just an example to illustrate my thinking problem - too many to loop through in a linear way, too many to keep in memory etc. Somehow I can't think of a solution with low footprint (and which stays sp...

SVN: Can I copy a subset of files to a new tag?

In my repo trunk I have a directory unit-tests that I want to keep out of my release tags. What I've been doing is copying trunk to a new tag, then deleting unit-tests. Is this OK? It feels wrong because it takes two revisions to tag every release. Is there a way to exclude a directory from the svn copy? E.g. I have: /trunk/unit-tests ...

Designing a robust social/collaborative tagging system

How might I implement a system where everybody can add/remove tags to every item, but still protect it from spam/tag-vandalism? I'm thinking it would probably need to store the tags that each person's tags for an item, and then somehow coming up with an aggregate/"top" tags for the item. I think Slashdot has a tagging system like this--...

Building a tagged project with CruiseControl.Net

Hey dudes, my manager has asked me to setup build automation for our projects. I have decided to use CruiseControl.Net as our continuous integration server as some other team members have a little experience with it, I have none - which is why I am happy to undertake this task. We are using Subversion as our repository and the ultimate...

How to enter tags correctly?

I have a tag field in my web page, in which user can enter tags seprating them by , (comma), same as done in StackOverflow. I am using PHP and I am seprating all tags enetered by the user on the basis of comma using explode function and then adding them to my tags table in teh database. My code is working perfect for normal tags like if...

SVN layout -- best practice

In CVS we have on project with multiple directories in there. There is a nightly build that has to pull in stuff from different directory in the same CVS project in order to build the nightly build. So I should have that in mind and I have to modify the build script to check things out from different repositories if we move to SVN. I r...

Facial recognition/detection PHP or software for photo and video galleries

I have a very large photo gallery with thousands of similar people, objects, locations, things. The majority of the people in the photos have their own user accounts and avatar photos to match. There are also logical short lists of people potentially in the photo based on additional data available for each photo. I allow users to tag pho...

Jquery and formating a textarea for tagging ??

I am looking for a way to use a textarea and get the values separated by commas, and place them into the array. Really I am looking for how to auto format the textarea so when the user types something in it either forces or something a comma break. I want to use autocomplete, but I have no data to check it with since this will be a new...

PHP - folksonomy tag checking regex

I'm trying to create a regex for checking values of submitted tags for a free form folksonomy system. Here is what I have now. if (!preg_match('/([^-\\a-zA-Z0-9._@\'])+/',$proposedtag)) { //true, good return true; } else { //false, bad characters return false; } I want to allow: hyphen, backslash, forward slash, a-z, ...

automatic documents tagging related

I started working on a project in which i must tag documents with keywords, and it is really hard and time consuming if you do it manually (specially if you have thousands of documents). So I am planning to automatize the process (knowing that the result would not perfect but at least it gives you some suggested tags ). In the latest fir...

Extracting custom tags from text file

Hello, I am creating my own file tagging system for an application and have not found any relevant information on the subject. My application appends tags to the end of a specified file, like so: If the user wants to mark a particular file as private (for example), the following text will be appended to the end of the specified file: ...

Nhibernate Tag Cloud Query

Hi, This has been a 2 week battle for me so far with no luck. :( Let me first state my objective. To be able to search entities which are tagged "foo" and "bar". Wouldn't think that was too hard right? I know this can be done easily with HQL but since this is a dynamically built search query that is not an option. First some code: p...

Multi-Tenant Tag Schema's for Distributed Content Types

There's quite a bit of discussion out there, regarding tag schema's, but I've noticed that most of it focuses on a single content type, such as bookmarks or photos. I'm interested in using tags across multiple features of a multi-tenant business app; one where tags could be related to form fields, documents, photos, configuration sett...

Django_tagging (v0.3/pre): Configuration issue

I am trying to use the django-tagging in one of my project and run into some errors. I can play with tags in the shell but couldn't assign them from admin interface. What I want to do is add "tag" functionality to a model and add/remove tags from Admin interface. Why is it the "tags" are seen by shell and not by "admin" interface? Wha...

On scaling tags in a tag cloud

I am implementing a tag cloud on a mobile device. The details of data-model etc, are not particularly important here. My question is about the scaling of tags: What is the 'best' expression to map tag frequency to font size? I have looked at this post discussing linear and logarithmic scaling and this answer from Adrian Kuhn sketch of ...

Anyone have a Tag Suggestion Component for ASP.Net?

I'm wondering if anyone has seen a tagging suggestion componet for Asp.Net. Simliar to the StackOverFlow, ZenDesk, Delicious Tagging Sugestion (Autocomplete, Click to delete, etc) I'm sure we could put one together...but it seams like it would be prime for a 'Best-in-class' componet product. So I think it must be out there. If not, I'm...