similar to: Association to indicate synonyms

Displaying 20 results from an estimated 6000 matches similar to: "Association to indicate synonyms"

2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
Very few people seem to be using synonym in Xapian, I recently found some problems in the use of synonyms. Normally, I think we should not contain any prefix info in synonym table except that 'Z'. For example, I have the following synonyms and prefix info: db.add_synonym("search", "find"); db.add_synonym("Zsearch", "Zfind");
2011 Jul 28
1
Xapian and Synonyms
Hi guys I've just had a thought about something we do with our search on ReportBuyer.com: we cater for both American and British English in our searches and we have had plans for a while now to implement something that allows users to find 'colour' and 'color', 'tap' and 'faucet' by doing some clever programming. Looking at the Xapian docs, though, it appears
2011 Sep 23
2
understanding stemming and synonyms
I am working with version 1.2.7 and want to use stemming and synonyms. I use the perl-bindings and get some problems. First of all: the perl-bindings dont allow the QueryParser a third argument when calling parse_query! So i cannot set a default prefix (which perhaps is the solution to my problem, but later more) i have a simple testcase: 3 documents, every document only has one word:
2012 Oct 04
1
Synonyms of Abbreviations
Hello, I am looking for a documentation or an example to use the synonym function. I tried this db.add_synonym("omega","xapain"); and this works by adding the flag FLAG_AUTO_SYNONYMS. If i try to use the db.add_synonym("omega","xapain is search engine "); it fails why? Can xapian use synonym for Abbreviations like MBA => Master of business
2016 Jan 05
0
synonym expansion for boolean prefixes.
On Sun, Dec 27, 2015 at 11:24:36PM -0400, David Bremner wrote: > I have an application for synonyms for tags in in notmuch, which means > synonym expansion for a particular boolean prefix. I have a vague memory > of Olly telling me this doesn't work, but I'm not sure about the > details. Yes, synonym expansion isn't done for boolean terms (only "probabilistic
2006 Aug 22
3
synonyms
Hi, Using ferret and acts_as_ferret. Great work. Is there a way to define some synonyms (searchable words that would not appear in the texts ? Like stop words, but instead of being removed from query and index, they would be added ;-) Can some synonyms be regexp ? I''d like for instance to have ? (oelig) be equivalent to oe in French. Or maybe an utf8 normalization could achieve
2009 Aug 15
1
extracting text from wordnet using synonym()
Dear group, There are postings on extracting partial string using sub()/gsub()/gsubfn() but I still couldn't figure this one out. Supposed I am pulling the synonyms of "help" using synonyms("help") from wordnet and get the followings: > synonyms("help") [1] "c(\"aid\", \"assist\", \"assistance\", \"help\")"
2015 Dec 28
3
synonym expansion for boolean prefixes.
I have an application for synonyms for tags in in notmuch, which means synonym expansion for a particular boolean prefix. I have a vague memory of Olly telling me this doesn't work, but I'm not sure about the details. My higher level goal is to support a kind of indirection with tags, where query tag:foo can really generate tag:bar or tag:fub, depending on some kind of configuration.
2016 Jan 09
0
synonym expansion for boolean prefixes.
On Tue, Jan 05, 2016 at 08:43:13AM -0400, David Bremner wrote: > Olly Betts <olly at survex.com> writes: > > > To achieve this with synonyms in a configurable way you'd need to > > rewrite the synonyms in the database to match the current configuration, > > so it's not as dynamic as the above. > > Well, the configuration needs to be somewhere. Would
2016 Jan 05
2
synonym expansion for boolean prefixes.
Olly Betts <olly at survex.com> writes: > A better option for this is probably a FieldProcessor - you set one for > a prefix and the it gets passed the value and returns a Query object > for it. E.g. in lua (where you can just pass an anon function for the > FieldProcessor - we ought to support C++11 lambdas for such things): [snip] > To achieve this with synonyms in a
2008 Apr 18
3
has_many and belongs_to with non-primary foreign keys
Hi, I''m having a bit of trouble with my first Rails app. ---- I have two tables: create_table :items do |t| t.column :created_at, :timestamp t.column :user_id, :int t.column :text, :text end create_table :users do |t| t.column :user_id, :int t.column :name, :string end ---- I''m trying to use the "user_id" field to link both tables, with each user
2016 Jan 09
1
synonym expansion for boolean prefixes.
Olly Betts <olly at survex.com> writes: > On Tue, Jan 05, 2016 at 08:43:13AM -0400, David Bremner wrote: >> Olly Betts <olly at survex.com> writes: >> >> > To achieve this with synonyms in a configurable way you'd need to >> > rewrite the synonyms in the database to match the current configuration, >> > so it's not as dynamic as the
2012 Nov 18
3
remarkable activerecord association RSpec
i''m using gem Remarkable activerecord for association. i''ve installed remarkable and remarkable activerecrod both gem. i''ve added both gem in my Gemfile. i''ve added "remarkable_activerecord" as required in spec_helper.rb. describe Authentication do FactoryGirl.build(:authentication).should belong_to(:user)
2007 Jul 07
2
Extending/Modifying QueryParser
Hi, I''ve implemented synonym searching in my rails application but have an idea I''d like to implement but can''t figure out how to do. The idea is that I''d like to give the end user the choice on whether to search for the synonym of a word or not. Preferably by extending the query language to parse a construct similar to ''%word1'' and
2006 Jul 10
2
Polymorphic associations in reverse?
My app has an association that''s got me scratching my head. I have Users, and Images. A User has many Images. (Yes, another picture sharing app, but it''s for a small niche, and it doesn''t end in -r!) I would like to express a "Favorite" relationship between both Users to Users, and Users to Images. This seems like the opposite of the standard
2015 Dec 07
0
Problems mapping a network drive on my PC to a LINUX directory using samba
On Mon, Dec 7, 2015 at 5:16 PM, Kenneth Watanabe <watana43 at unlv.nevada.edu> wrote: >Below is the /etc/samba/smb.cnf file By default the file is smb.conf unless you're specifically starting Samba using a different named file. > [share] > path = /home/kwatanabe/share > available = yes > valid users = kwatanabe > read only = No >
2007 Oct 15
2
Association Help , 2 Teams playing a FootballGame
So I have the models class FootballGame < ActiveRecord::Base end and class Team < ActiveRecord::Base end I want to be able to do something like this @t1 = Team.create(:name=>"Michigan Wolverines football") @t1.save @t2 = Team.create(:name=>"Penn State Nittany Lions football") @t2.save @g = FootballGame.create(:hometeam => @t1, :awayteam => @t2) @g.save
2019 Sep 19
3
Improving partial lookup results
Incidentally, if you're actually aiming to match different forms of a name (Peter vs Pete, Ann vs Anne vs Annette) then you might find the synonym feature a better option than wildcarding. You'd need to give it a list of names to treat as synonyms, but it should have many fewer false positives, and can also handle cases which aren't just a substring - e.g. Robert vs Rob vs Bob vs
2010 Jun 29
3
belongs_to. Association methods don't pass data to DB
Hi. I have a problem with the association methods which passed to a model through a belongs_to declaration. Here''s an illustration of the issue: GIVEN: # migration class CreateArticlesAndAuthorsTables < ActiveRecord::Migration   def self.up     create_table :articles do |t|       t.text     :title       t.integer :author_id     end     create_table :authors do |t|       t.text
2006 Dec 05
1
has_many :through questions
I have a database with 4 tables Months has_many :weeks Weeks has_many :days Days has_many :hours Hours Weeks belong_to :month Days belong_to :week hours belong_to :day I need to access the month_id in the Hour.rb model. find(:first, :conditions => ["user_id = ? AND month_id = ?", user_id, month_id]) Thanks -- Posted via http://www.ruby-forum.com/.