Questions tagged [semantics]

The study of meaning as it applies to programming languages

Semantics is the study of meaning. In computer programming, semantics refers to the relationships between symbols in a programming language, and how those symbols are combined and manipulated to produce a computing result.

Useful links

1728 questions
0
votes
0 answers

nltk latent semantic analysis copies the first topics over and over

This is my first attempt with Natural Language Processing so I started with Latent Semantic Analysis and used this tutorial to build the algorithm. After testing it I see that it only classifies the first semantic words and repeats the same terms…
0
votes
1 answer

GIS DATA conversion

i am looking for tool make me convert ESRI shapefile to RDF files and this tool can include in Web Server build in C#
0
votes
1 answer

Are there any tools to detect/avoid IE proprietary syntax from my JavaScript code?

I learnt that the JavaScript syntax document. is IE proprietary syntax (instead of document.forms.). (reference:…
0
votes
0 answers

What does it mean for a type argument to "range" over all types that are sub types of all types listed in the corresponding bound?

4.5 of the Java SE states: "A generic type has type parameters F1,...,Fn with corresponding bounds B1,...,Bn. Each type argument Ti of a parameterized type ranges over all types that are subtypes of all types listed in the corresponding bound. That…
Matthew S.
  • 464
  • 2
  • 12
0
votes
1 answer

local variable with conflicting name in inline function

I'm trying to study the intricacies of inline. To that end I've created this little program. I've defined an inline function that has an 'automatic' variable of the same name as a globally defined variable. After making sure my function is marked…
AjB
  • 890
  • 13
  • 34
0
votes
0 answers

Nested Booleans is causing errors

I seem to have an nested boolean which seem to cause trouble for me... The purpose of the boolean is suppose to check whether an attribute specification it is set for type a or type b? examaple: public Enum DateType { Integer, …
kafka
  • 573
  • 1
  • 11
  • 28
0
votes
2 answers

How can I use a hashtable to do the "two sum" problem in leetcode?

public int[] twoSum(int[] nums, int target) { Map map = new HashMap<>(); for (int i = 0; i < nums.length; i++) { map.put(nums[i], i); int complement = target - nums[i]; if…
xunmiw
  • 21
  • 3
0
votes
1 answer

creating a model using JENA

I am new in the semantic web field, and i'm trying to create a java model using JENA to extract classes, subclass and/or comments from an OWL file.. any help/guidance on how to do such thing would be appreciated. Thank you
Emma
  • 9
  • 2
0
votes
0 answers

When to use a list vs a div with flexbox

Take a look at this image: Which ones of these would you put in a list tag and why? And what should I think about to decide if I should wrap stuff in a list element? I know there are semantical differences between the two, but sometimes it's hard…
Volper
  • 644
  • 6
  • 14
0
votes
0 answers

Search keyword from Dbpedia using nodejs

I am new in node.js.I downloaded and executed a project from GitHub from this link. Here on this link there is live demo of this app. It is running rdf search using wikidata. This is the function that I found for the search of keyword from wikidata…
user11297480
0
votes
0 answers

Control structure to specify arithmetic operator

I know there are countless ways to implement either adding or subtracting based on a flag and I have listed three of them. My last example is the most concise, however, I was surprised I didn't come up with a more semantic approach. If "best" is…
user1032531
  • 24,767
  • 68
  • 217
  • 387
0
votes
1 answer

Word Mover's Distance vs Cosine Similarity

I wonder which algorithm is the best for semantic similarity? Can anyone explain why? Thank you!
0
votes
1 answer

Semantics of indicating that a `ul` doesn't contain any `li`s

I have a ul that can have a varying number of lis inside it:
  • content
  • content
When there are no items in the list, we would have no li elements:
However, when this is displayed to the…
Chris Smith
  • 2,928
  • 4
  • 27
  • 59
0
votes
0 answers

NLP: Permute the order of constituent phrases in an English sentence

I'm looking for a solution that is not knowledge-base dependent or domain-specific, i.e. for general English text. For the sentence, "I went to the store today", one can identify constituents , and permute to "Today I…
Igott
  • 23
  • 7
0
votes
2 answers

ReactJS - Best Practice For Saving HTML Snippets/Templates

Hopefully someone can point me in the right direction to the cleanest/most accepted way of storing HTML markup in React apps. Imagine my scenario: I have a country dropdown menu (