Questions tagged [python]

The tag has no usage guidance.

5 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
1 answer
480 views

Jiang & Conrath when two words are the same

I would like to normalize the result of Jiang & Conrath similarity measure by dividing it by the maximum value(normally should be when both synsets are the same). I am using the implementation of ...
Goli A's user avatar
  • 21
2 votes
0 answers
823 views

Is there a Python lib to calculate HTER?

Is there a Python lib that calculates HTER - Human-targeted Translation Error Rate? Ideally it would expose a function that takes as parameters 1) at least one golden translation and 2) the ...
Adam Bittlingmayer's user avatar
1 vote
0 answers
60 views

How to apply TF-IDF on my bows after generating frequencies

I'm working on document similarity using WordNet, though I have no idea how to apply the IDF weighting at this point in my code. I'm sure this weighting is one of the most simple things out there, but ...
bemzoo's user avatar
  • 17
0 votes
0 answers
3k views

ValueError: Can not squeeze dim[1], expected a dimension of 1

I want to buil a sequential LSTM model that predicts binary classification at every time step. More exactly, I want to predict an output for every paragraph in my texts (48 is the number of paragraphs)...
maeven's user avatar
  • 11
-2 votes
0 answers
42 views

Does Python use any particular metasyntax?

Of course, I found many pages on the web explaining Python syntax. One such example is the English Wikipedia article that explains it specifically and compares it to other programming languages. ...
Juandev's user avatar
  • 17