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
1 answer

Collecting similar strings from local html-documents using Python's regex

I'm having issues trying to obtain a bunch of similar strings from a bunch of text (HTML) files using Python's regex. The files in question look something like this:
sesodesa
  • 1,473
  • 2
  • 15
  • 24
0
votes
2 answers

Why double curly braces in Angular/JS are called interpolation?

After more than a year of working with Angular/JS, I still don't have an intuitive understanding of what is interpolation (e.g. {{1+4}} ). What is the origin of the of the term (in Angular/JS context) and does it have anything in common with the…
altgov3en
  • 1,100
  • 2
  • 18
  • 33
0
votes
1 answer

Dismiss a ui dropdown in semantic

I need to dismiss a ui dropdown while hovering over it. Now, the ui drop down is just visible and never shows or hides when tapped or clicked. Here are the snippets:
0
votes
1 answer

Adding a title to more than one definition list?

I wish to have multiple definition lists and have a single title for these lists, for example: //how can I add the title of "Items in fridge"
Food:
Eggs
Bacon
Drinks:
panthro
  • 22,779
  • 66
  • 183
  • 324
0
votes
0 answers

Could not connect to marklogic using marklogic-jena api

Code Used to connect is as below DigestAuthContext dcf= new DatabaseClientFactory.DigestAuthContext("admin", "admin"); DatabaseClient client = DatabaseClientFactory.newClient( "localhost", 8000, "GraphTest",dcf); …
0
votes
1 answer

Pound (#) meaning in OCaml

I am doing an OCaml assignment, and was just snooping through the assignment files, where I found what I think to be a generated file. It has a lot of code like this, match Lexing.engine __ocaml_lex_tables __ocaml_lex_state lexbuf with | 0…
Enrico Borba
  • 1,877
  • 2
  • 14
  • 26
0
votes
1 answer

Sass Background Percentage Position

How do I stop Sass from performing a calculation on the following background-position declaration? background: #000 url('/foo.png') no-repeat fixed center 110%/115% Bug found. It has to do with SquareSpace servers and their compiling of…
Ryan Prentiss
  • 1,492
  • 2
  • 25
  • 46
0
votes
1 answer

Extracting semantic data from webpages

I'm interested in extracting semantic data (simple template stuff) from webpages and other sources that aren't currently semanticly aware. I've written crawlers and manual parser before in a bunch of different languages, but there always seems to…
Alex M
  • 3,506
  • 2
  • 20
  • 23
0
votes
2 answers

Why does [][[]] evaluate to undefined?

The expression [][[]] evaluates to undefined in JavaScript. My understanding of this was that the compiler sees the second set of [...] and interprets that to be an array subscript operator (because you can't have two arrays next to each other). So…
pushkin
  • 9,575
  • 15
  • 51
  • 95
0
votes
1 answer

How to control the URI of triples generated by sem:rdf-insert in MarkLogic?

Can we customize the URI of the triples? Is there anyway to do so? As when we insert the triples in ML database it creates duplicates. Same triple with diff URI. So I want to create URI of my own choice. Is that possible in MarkLogic? Thanks, Aj
Anuj Gupta
  • 31
  • 4
0
votes
0 answers

Smart Semantic Category Clustering Using R

Got 2 data frames, did the below: library(tm) v<- Corpus(VectorSource(as.vector(bothsources[,1]))) inspect(head(v,3)) v <- tm_map(v, removeWords, stopwords("english")) v <- tm_map(v, content_transformer(tolower)) inspect(head(v,3)) v<- tm_map(v,…
0
votes
2 answers

Java - Semantic Analysis: Implementing a hash table with a key and multiple value

In semantic analysis one of the most popular method or data structure used is Hash Table. Implementing hash table is relatively easy however reading this peresentation made it complex for me - I don't know if Im right. Based from the presentation,…
Xavier Johanis
  • 59
  • 2
  • 12
0
votes
1 answer

ontology application project

I am looking for a project (application) that makes use of Ontology (for an academic course). Every body is talking about the health care application. I want to work on a different project. please any suggestion could help.
Ayoub M.
  • 4,690
  • 10
  • 42
  • 52
0
votes
1 answer

Specify NLTK feature grammar within Python function in code

I have parsed input string by loading grammar specified within a .fcfg file as given in the NLTK book. Is there anyway to specify this grammar within the Python function itself? Grammar: % start S S[SEM=(?np + WHERE + ?vp)] -> NP[SEM=?np]…
Fayas B.
  • 25
  • 7
0
votes
0 answers

Regarding html document outline

Can I use

element nested inside
element in order to make logical outline in this code