Questions tagged [disambiguation]

This tag refers to the process of making something less ambiguous.

Use this tag for questions related to reducing or eliminating the ambiguity of something, such as code.

63 questions
41
votes
4 answers

How to disambiguate links to methods in scaladoc?

I'm documenting a Scala class with overloaded methods. How can I distinguish them when referring to them in scaladoc comments? For example, if I have /** * The most important method is [[Doc.foo]]. */ object Doc { def foo[A]: A = throw new…
Petr
  • 62,528
  • 13
  • 153
  • 317
7
votes
4 answers

How to work through name collisions in ruby

Two modules Foo and Baa respectively define a method with the same name name, and I did include Foo and include Baa in a particular context. When I call name, how can I disambiguate whether to call the name method of Foo or Baa?
american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80
7
votes
2 answers

JFileChooser - regarding the "open" and "cancel" buttons. Java

I am having some trouble using the JFileChooser. Whenever I run the program if I click the "cancel" button right away without selecting a file it will display "hello" and if I click open, it will not do anything. On other hand, if I select a file…
MaCo
  • 111
  • 1
  • 1
  • 9
6
votes
2 answers

ambiguous partial specializations with std::enable_if

I have a problem encountered at a condtion like below: #include #include #define TRACE void operator()() const { std::cerr << "@" << __LINE__ << std::endl; } template struct check : std::true_type {}; template…
5
votes
1 answer

What is the best method to make location disambiguation for geonames data?

What is the best method to do location disambiguation for geonames data? There are some scoring algorithm for geonames search, but they do not open source it and I'm not sure they are very sophisticated. (i.e. for soma, ca it returns Soma lake in…
yura
  • 14,489
  • 21
  • 77
  • 126
5
votes
1 answer

Anyone know of some good Word Sense Disambiguation software?

What represents the state-of-the-art in Word Sense Disambiguation (WSD) software? What metrics determine the state-of-the-art, and what toolkits / open source packages are available?
Blodstone
  • 325
  • 2
  • 8
5
votes
2 answers

How to disambiguate this template?

I have a class which takes a size as a template parameter (live demo): template class A { char b[SIZE]; } It have multiple constructors for different purposes: using const_buffer_t = const char (&)[SIZE]; using my_type =…
PaperBirdMaster
  • 12,806
  • 9
  • 48
  • 94
5
votes
1 answer

Query dbpedia to find possible contexts to disambiguate a word

Good day, stackoverflow, I need to suggest to user different contexts for a word, so that he could have a possibility to disambuguate it. For example: a word "less" can be Unix program, css framework or some other things. A word "apple" can be a…
Mironor
  • 1,157
  • 10
  • 25
4
votes
3 answers

How does C# disambiguate between multiple interfaces in method calls?

Assume I have a class C that inherits from 2 interfaces (I1 and I2). I also have two versions of a method (DoStuff), each taking one of the interfaces as a parameter. If I call DoStuff(C), which one gets called? interface I1 { ... } interface I2 {…
Nigel Hawkins
  • 824
  • 1
  • 8
  • 23
4
votes
4 answers

C++ : Make multiple constructors with the same argument types

I would like to make a class with several constructors of the same type. As this is not directly possible, is there a simple way to define readable "dummy" types such as the class could look like: class Myclass { MyClass(Orange, std::string &…
galinette
  • 8,896
  • 2
  • 36
  • 87
3
votes
1 answer

NLTK. Lesk returns different result for the same input

I'm using LESK algorithm for getting SynSets from the text. But I'm getting different results with the same inputs. Is it Lesk algorithm "feature" or am I doing something wrong? Next is the code I'm using: self.SynSets =[] sentences =…
MisterMe
  • 149
  • 10
3
votes
1 answer

Non-type Templates for policy functions

So, I am trying to use a policy which in turn has a non-type templated function. The compiler is having some issues figuring out what I am trying to do. For example, one policy looks like: template struct Foo { /* Internal data…
3
votes
1 answer

Disambiguation of expressions with neighboring operators of different associativity and same precedence

Say I have an expression as follows (where ⨁ and ⨂ are binary operators which have the same precedence level but not the same associativity): x ⨁ y ⨂ z Would y belong to ⨁ or ⨂, and based on what criteria?
2
votes
3 answers

Disambiguation error when working with wikipedia import module in python

While using the Wikipedia module in my code, I am getting a disambiguation error. **My code: import wikipedia print("Using Wikipedia") while True: input = input("Question: ") print(wikipedia.summary(input)) **Output: Using…
Ameya Uppina
  • 131
  • 1
  • 3
  • 13
2
votes
1 answer

How to reference ambiguous top level variable?

In this code, I'd like to ACCEPT and DISPLAY the 01 level D variable. While the 05 level D is easy, D OF F, is there a way to specify the 01 level D? The obvious solution is “just change the variable name”, but hoping there's a better…
Yimin Rong
  • 1,890
  • 4
  • 31
  • 48
1
2 3 4 5