tagging

Some NLP stuff to do with grammar, tagging, stemming, and word sense disambiguation in Python

半世苍凉 提交于 2019-12-03 08:27:56
问题 Background (TLDR; provided for the sake of completion) Seeking advice on an optimal solution to an odd requirement. I'm a (literature) student in my fourth year of college with only my own guidance in programming. I'm competent enough with Python that I won't have trouble implementing solutions I find (most of the time) and developing upon them, but because of my newbness, I'm seeking advice on the best ways I might tackle this peculiar problem. Already using NLTK, but differently from the

Tagging system: Toxi solution questions

◇◆丶佛笑我妖孽 提交于 2019-12-03 06:06:36
问题 I'm sort of breaking my head over the Toxi solution for tag database schemas. I'm working on a system to which users can submit items, and those items can have tags associated with them. After reading up on tagschemas, I found the Toxi solution to suit my needs most. However, I'm not entirely sure if I'm planning this right, so I'd like your opinions on this please. I'll have three databases. items containing item_id and others tagmap using item_id and tag_id as foreign keys tags containing

MySQL Limit with Many to Many Relationship

风流意气都作罢 提交于 2019-12-03 04:01:48
Given a SCHEMA for implementing tags ITEM ItemId, ItemContent TAG TagId, TagName ITEM_TAG ItemId, TagId What is the best way to limit the number of ITEMS to return when selecting with tags? SELECT i.ItemContent, t.TagName FROM item i INNER JOIN ItemTag it ON i.id = it.ItemId INNER JOIN tag t ON t.id = it.TagId is of course the easiest way to get them all back, but using a limit clause breaks down, because you get an duplicate of all the items for each tag, which counts toward the number of rows in LIMIT. My second solution uses a MySQL function GROUP_CONCAT() to combine all tags matching the

Implementing twitter-like hashtag on rails

谁说我不能喝 提交于 2019-12-03 03:13:16
问题 I'm want to implement twitter-like hashtag on my app. Let's say I have user input to a text area "I'm coming to #london from #paris" then I want to build tag cloud of the hashtags. I'm thinking of using acts-as-taggable-on. So I find all of my hashtags from the text in the backend, then save it to tag field. Anyone has experience on this they would like to share? Thanks. 回答1: Yes, ActsAsTaggableOn should be fine. As @etang alluded to, it's a heavy gem, but it gets the job done. If you're

How to implement tagging system similar to SO in php/mysql?

让人想犯罪 __ 提交于 2019-12-03 02:31:06
问题 I'm coding a website in PHP/MySQL and I'd like to implement a similar to stackoverflow tagging engine. I have 3 relevant tables in DB: 1. Items 2. Tags 3. ItemTagMap (maps tags to items, n:n mapping) Now, on search page I'd like to show distinct list of all tags for entire search result (not just the current page), so that users can "refine" their search by adding/removing tags from that tag list. The question is that it's a pretty heavy query on the DB and there can be tons of search

Is there any Treebank for free? [closed]

别等时光非礼了梦想. 提交于 2019-12-03 02:22:14
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Is any place I can download Treebank of English phrases for free or less than $100? I need training data containing bunch of syntactic parsed sentences (>1000) in English in any format. Basically all I need is just words in this sentences being recognized by part of speech. 回答1: NLTK (for Python) offers several

How to mention users with “@” in app like Instagram

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 00:37:59
I am creating an app that has photo sharing, and I am trying to add in the functionality to mention (or tag) users. Twitter is what originally starting using "@" with a username to tag users but now everything from Facebook to Instagram is using it. Is this something that is implemented on the iOS side or in the back end? I am currently programming the back end in Django, but for some reason I think this would be accomplished on the iOS end. There is surprisingly very little information out their on how to mention users in either Django or iOS. Basically, when creating a post, I'd like to

How to implement tag counting

99封情书 提交于 2019-12-02 21:14:04
I have my tags desinged like this in my database: Table: Item Columns: ItemID, Title, Content Table: Tag Columns: TagID, Title Table: ItemTag Columns: ItemID, TagID //example -- this is the right sidebar of stackoverflow c# × 59279 sql × 14885 asp.net-mvc × 9123 linq × 4337 tags × 339 if I wanted to know the count of each tag such as how stackoverflow counts their tags how would I do it? What kind of query would I perform. I am open to both regular sql and linq Add another column in the table Tag that work as counter. When you add or remove a tag from an item you update the counter (in other

Some NLP stuff to do with grammar, tagging, stemming, and word sense disambiguation in Python

心不动则不痛 提交于 2019-12-02 21:04:17
Background (TLDR; provided for the sake of completion) Seeking advice on an optimal solution to an odd requirement. I'm a (literature) student in my fourth year of college with only my own guidance in programming. I'm competent enough with Python that I won't have trouble implementing solutions I find (most of the time) and developing upon them, but because of my newbness, I'm seeking advice on the best ways I might tackle this peculiar problem. Already using NLTK, but differently from the examples in the NLTK book. I'm already utilizing a lot of stuff from NLTK, particularly WordNet, so that

Mac OS X : add a custom meta data field to any file

左心房为你撑大大i 提交于 2019-12-02 16:22:21
I would like to me able to set (and get) a custom metadata attribute for any file. What is the best way to do this? Thanks The OpenMeta framework is a de-facto third-party standard for adding metadata to OS X files using extended attributes. It is used by a number of third-party applications. Custom attribute names work for me: $ xattr -w com.apple.metadata:MyAttribute gfdylvyieo a.txt $ mdls -n MyAttribute a.txt MyAttribute = "gfdylvyieo" $ mdfind gfdylvyieo /private/tmp/a.txt $ mdfind 'MyAttribute=*' /private/tmp/a.txt xattr -wx is not needed if the value is plain text: xattr -w com.apple