In machine learning, semantic analysis of a corpus is the task of building structures that approximate concepts from a large set of documents.
Questions tagged [semantic-analysis]
137 questions
1
vote
2 answers
Code generation for "if" statements - compilers
I am in the middle of developing a compiler for a C like language and am having some difficulties in the semantic analysis and code generation phases.
My questions are the following:
1) For an if statement, the following is the syntax:
if…

beanyblue
- 171
- 3
- 7
1
vote
1 answer
Clear approach for assigning semantic tags to each sentence (or short documents) in python
I am looking for a good approach using python libraries to tackle the following problem:
I have a dataset with a column that has product description. The values in this column can be very messy and would have a lot of other words that are not…

mersa
- 85
- 1
- 9
1
vote
1 answer
In R: How do i solve "Out of memory" error in POS tagger?
In R, i have a data with 30 records for sample, main data has 20000 records. records are tweets.
I extract bigrams from any tweet and i use from postagger. For sample data,that shown me errors
.jnew("opennlp.tools.postag.POSModel",
…

shabnam isfehani
- 33
- 1
- 7
1
vote
2 answers
Reusing symbol table from semantic analysis phase for code generation
I'm currently building a compiler for a language which has global variable and nested subroutine feature. Previously, I've only ever built a compiler for languages which only has local variable without nested subroutine.
I have a problem on how to…

LeleDumbo
- 9,192
- 4
- 24
- 38
1
vote
1 answer
semantic matching strings - using word2vec or s-match?
I have this problem of matching two strings for 'more general', 'less general', 'same meaning', 'opposite meaning' etc.
The strings can be from any domain. Assume that the strings can be from people's emails.
To give an example,
String 1 =…

Thalapathy
- 25
- 1
- 5
1
vote
3 answers
Find similar texts based on paraphrase detection
I am interested in finding similar content(text) based on paraphrasing. How do I do this?
Are there any specific tools which can do this? In python preferably.

Sumukha TV
- 19
- 3
1
vote
1 answer
Any potential downsides to either of these subclassing approaches?
Imagine that you have several tables that stand for activities:
ProcessActivities
MedicalActivities
MaintenanceActivities
LogisticalActivities
You now realize that all are activities, then, what would you do?
you create a master table named…

alacret
- 572
- 4
- 19
1
vote
0 answers
Parsing and Attribute Stack
Can someone please help me with the question below:
Consider the following grammar with action routines:
params → mode ID par_tail
{ params.list := insert(, par_tail.list) }
par_tail → , params { par_tail.list :=…

Justin Carrey
- 3,563
- 8
- 32
- 45
1
vote
0 answers
what are the different techniques for comparing 2 words semantically? Which one is the best among them?
Right now, I am at the starting point of a project in which I am supposed to compare two words semantically.
I came to know about WordNet wherein we find distance between words to find how similar they are in terms of their meaning.
It would be…

phoenix
- 644
- 10
- 22
1
vote
1 answer
Error: Could not find or load main class at one call and no error at another call in the same script
I am working on an implementation of ESA, I changed one of the java files, compiled it using the command
javac -cp lib/*:esalib.jar ./src/clldsystem/esa/ESAAnalyzer.java
and pasted the .class file to the corresponding…

nish
- 6,952
- 18
- 74
- 128
1
vote
0 answers
How to extract geo information from a free text?
I have various short articles (in German) and most of them refer to a street, a place or a popular building. How would you try to extract this data from the text? Are there any web services that could be helpful?

Taig
- 6,718
- 4
- 44
- 65
1
vote
1 answer
In the NLTK, how to interface to Boxer?
I want to be able to use Boxer as a semantic extractor inside NLTK.
I am testing with the following code:
#!/bin/env python
import nltk
x = nltk.sem.boxer.Boxer()
x.interpret("The capital of Spain is Madrid .")
The failure is the…

ssice
- 3,564
- 1
- 26
- 44
1
vote
0 answers
Language-independent keyboard: culturating neutral text in English -kbd without things such as umlauts?
I like to use US Dvorak International keyboard while programming -- every manual, every documentation and also program with it. I am driving my teachers crazy because every-now-and-then they require me to write things in different languages such as…

hhh
- 50,788
- 62
- 179
- 282
1
vote
1 answer
how to access WordNet hierarchy using JAWS api?
I am trying to access the top most object in the WordNet hierarchy.
Example: "Tiger" must return "Animal", similarly for other things like "car" -> automobile
I am using JAWS api for access to WordNet via JAVA.
1) How to do it?
2) Is there a general…
user1609626
1
vote
2 answers
How to use Parts-of-Speech to evaluate semantic text similarity?
I'm trying to write a program to evaluate semantic similarity between texts. I have already compared n-gram frequencies between texts (a lexical measure). I wanted something a bit less shallow than this, and I figured that looking at similarity in…

Zach
- 4,624
- 13
- 43
- 60