Questions tagged [semantic-analysis]

In machine learning, semantic analysis of a corpus is the task of building structures that approximate concepts from a large set of documents.

137 questions
0
votes
1 answer

Replicating Semantic Analysis Model in Demo

Good day, I am a student that is interested in NLP. I have come across the demo on AllenNLP's homepage, which stated that: The model is a simple LSTM using GloVe embeddings that is trained on the binary classification setting of the Stanford…
Benji Tan
  • 635
  • 7
  • 22
0
votes
1 answer

semantic analyzer for html fail

i wrote a java net framework like Jsoup. Now i have some problems in DOM analyzing. I test HTML analyzer for html page https://list.youku.com/show/id_zcc001f06962411de83b1.html and can't get the right answer. I published my code in github and there…
SunYue
  • 1
0
votes
1 answer

Holding a map reference to a vector of maps

My task is to construct a compiler which lexes, parses and analyses the resultant Abstract Syntax Tree to ensure type matching, avoid duplicate declaration etc. It was instructed for us to construct a Symbol Table, which holds a map of variables and…
Luponius
  • 89
  • 1
  • 8
0
votes
2 answers

Compiler design preprocessing and compiling

It is written here that the one among many jobs of preprocessor is : Inclusion of header files. These are files of declarations that can be substituted into your program. Does the contents in header files goes through lexical analyser, syntax…
0
votes
1 answer

How to use paralledots api in app engine?

I want to check text similarity using paralleldots api in app engine, but when setting the api key in app engine using. paralleldots.set_api_key("XXXXXXXXXXXXXXXXXXXXXXXXXXX") App engine giving Error: with open('settings.cfg', 'w') as…
0
votes
1 answer

Resolving names in a 'path expression' in a compiler, e.g. 'person.name'

I have been racking my brain over this for a while and I can't figure it out. I have some kind of code like this in my c-like language: struct PersonInfo { int numFriends; int favColour; } struct Person { PersonInfo info; string…
0
votes
1 answer

Semantic Checks after the AST creation

I created a scanner and a parser (with flex and bison respectively) and an AST to implement a Java-Python translator. I don't understand how to manage semantic actions in AST (type checking, variable declaration checking,...), that is where to…
Mick
  • 87
  • 1
  • 11
0
votes
1 answer

How to manage semantic rule of declaration of variable in bison

I have to build a compiler that translates the java language into pyhton. I'm using the Flex and Bison tools. I created the flex file and I defined the syntactic grammar in Bison for some restrictions that I have to implement (such as array,…
0
votes
0 answers

Type checking variable and array

I have to build a compiler that translates the java language into pyhton. I'm using the Flex and Bison tools. I created the flex file and I defined the syntactic grammar in Bison for some restrictions that I have to implement (such as array,…
0
votes
1 answer

Find most significant/informative review or create new review

Given a list of reviews (10000+), such as: has great pizzas, price is low and customer service is average Customer service was horrible, there was a long wait during lunch, food was ok has amazing pizzas and I highly recommend it, they also have…
0
votes
1 answer

Multidimensional Vectorclustering with dbscans OPTICS in R

Im trying to Cluster a matrix of words by their semantic correlation with the OPTICS algorithm. I have a matrix like this: I want to see each row as a vector (~260 dimensions) and cluster the terms that are closest to each other. My code so…
belzebubele
  • 88
  • 10
0
votes
0 answers

How to perform semantic analysis using a relation tree in order to filter offensive content without affecting the readability in Python

I am trying to create a Webapp for Facebook which would filter the offensive posts and comments without affecting its readability.I am done with POS tagging and I got a relation tree using the Stanford parser.Now I am trying to figure out if there…
Pihu
  • 7
  • 3
0
votes
1 answer

How to automatically identify hypernyms from a group of words?

I have several groups of words, for example in group A: apple, pear, banana, fruit, grape, watermelon; in group B: cat, animal, dog, pig, monkey, duck; in group C: Italy, Australia, country, China, Greece. How can I automatically identify the…
Carter
  • 1,563
  • 8
  • 23
  • 32
0
votes
0 answers

Semantic analyzer for checking type incompatibilities - Symbol table Implementation?

I got this code for Semanitic Analysis. Can't figure out the code for Symbol Table to make it run? Making a 2D array like this : String[,] Symboltable = new String[20, 6]; Gives error of wrong number of indices inside, which I resolved but still…
0
votes
0 answers

Luis intents with composite terms

I am developping a bot using the LUIS API by Microsoft. This bot must understand queries related to shopping like "I want potatoes". The only thing my application is struggling with is detecting intents from composite terms: For the query "I want…
Toto
  • 736
  • 9
  • 33