Hot answers tagged

4 votes

Finding phonetic similarity of names in different languages

A disclaimer is required, that linguistic reality is different from what your spelling-to-IPA guide gives you, so you could spend forever in disputes over the phonetic outputs of Somali, Quechua, ...
user avatar
  • 67.7k
3 votes
Accepted

How to make a Corpus? (selecting a good structure)

Well, there are several considerations: 1 What is your research question? You always make a corpus with a purpose. So you design a corpus that is useful with respect to your research question. When ...
user avatar
3 votes
Accepted

Libs or APIs for removing background noise from voice input?

Take a look at 2Hz Noise Suppression API. It's language-agnostic and is a REST API so you can use it from any programming language. Currently the API isn't designed for real time however this will ...
user avatar
  • 46
3 votes
Accepted

Differences in Naive Bayes Classifier NLTK, same code, different answers?

In the first case, you're training with the entire data set, then testing on different chunks of it. In the second case, you're training with chunks of the data set, then testing on the whole thing. ...
user avatar
  • 52k
2 votes
Accepted

P2G Alignment Algorithm in Python (OS X)

I figured I'd post an answer in case it helped anyone else in the future. I wound up installing Jiampojamarn's m2m-aligner, callable via the terminal, and it works great. I used this to preprocess all ...
user avatar
  • 131
2 votes

Libs or APIs for removing background noise from voice input?

Removing noise usually corrupts the speech and harms the performance. It is frequently more accurate to decode noisy speech than noise-cleaned speech, in particular because recognizer does noise ...
user avatar
2 votes
Accepted

Python's treetaggerwrapper does not recognize numbers

The number is preserved in the word attribute, so it's easy enough to swap it back in. But as mentioned in the comments, Tag is an immutable type. So I propose a fairly straightforward list ...
user avatar
  • 52k
2 votes

For each word in a corpus, find how many senses it has according to WordNet

Given your tags, I assume you're using the nltk library? First you'll want the Reuters and Wordnet corpora: from nltk.corpus import reuters, wordnet Then, get your words from the Reuters corpus ...
user avatar
  • 52k
1 vote

Finding phonetic similarity of names in different languages

I've been wanting to do something similar myself. I don't have an “ideal” solution yet, but feel free to use any of my ideas thus far. Phoneme similarity function You'll need to define some function ...
user avatar
  • 111
1 vote

How to extract specific data from a TextGrid file?

I don't know how homogenous is TextGrid across different tools that use it, but there is a Python package, pympi which can be used to read Praat TextGrid files. In particular, pympi.Praat.TextGrid ...
user avatar
  • 581
1 vote

How to extract specific data from a TextGrid file?

Xmin and xmax are the starting times in seconds, within the file (which goes from 0 to 4.360703 seconds), and ORT-MAU tells you the same thing (in this instance), but then tells you the time periods ...
user avatar
  • 67.7k
1 vote

Seq2seq translation model. ValueError: An operation has `None` for gradient

This error means that an operation in your graph is not differentiable. In this case, it's one of the operations within the embedding layers. For this reason, it's generally said that embedding layers ...
user avatar
1 vote

Python list to Parse tree

The standard way to make a parse tree using the CYK algorithm is to build a new tree node every time you would be storing "true" in the CYK table, and store that node in the table instead. The node ...
user avatar
  • 52k
1 vote

How to extract rows with only meaningful text in a column

Define “meaningful”. Implement that definition by means of a filter that will accept meaningful text, i.e., text that can be understood under such rules. A modern way to solve this problem would be ...
user avatar
  • 436
1 vote

Representing knowledge extracted from output of dependency parsing

Since you are using CoreNLP to generate dependency trees, a very nice way to tackle your problem would be to use the Tsurgeon library used to manipulate parse trees. Tsurgeon is a (parse) tree ...
user avatar
  • 111
1 vote

Automated wh movement for turning an answer into the form of a question

I suggest you look at the account of English wh-expressions given in Generalized Phrase Structure Grammar by Gazdar, Klein, Pullum and Sag. It's very thorough going and explicit. It takes the ...
user avatar
  • 12.3k

Only top scored, non community-wiki answers of a minimum length are eligible