Questions tagged [lsa]

LSA stands for Latent Semantic Analysis, a natural language processing technique which involves analysing the relationships between documents and terms they contain by producing a set of related concepts.

LSA stands for Latent Semantic Analysis, a natural language processing technique which involves analysing the relationships between documents and terms they contain by producing a set of related concepts.

For the Microsoft Windows subsystem, see (local-security-authority).

126 questions
-1
votes
1 answer

R - convert DFM to LSA then compute cosine similarity: Error inherits(x, "Matrix") is not TRUE

I have a Document-Features-Matrix (DFM): I want to convert it into a LSA object and finally to compute cosine similarity between each documents. this are the passages I followed lsa_t2 <- convert(DFM_tfidf, to = "lsa" , omit_empty =…
Carbo
  • 906
  • 5
  • 23
-1
votes
2 answers

Python 2 : AttributeError: 'list' object has no attribute 'split'

this is my program of LSA, in this fonction i want to tokenize all my text and then transform it to stem. i'm trying to integrate them program of stemming and then i get this: for word in titles.split(" "): AttributeError: 'list' object has no…
YayaYaya
  • 125
  • 2
  • 3
  • 10
-1
votes
1 answer

Compare text stored in each row across 2 columns in R

I have 2 vectors a=c("abc","def","ghi","jkl") b=c("abc","dez","gyx","mno") How can I get cosine values to compare corresponding entries? In this case, I need to be able to say the 1st entries in each vector is perfectly similar and 2nd entry in each…
VSAT
  • 1
  • 1
-2
votes
1 answer

Best tool for text representation to deep learning

so I wanna ask you which is the best tool used to prepare my text to deep learning? What is the difference between Word2Vec, Glove, Keras, LSA...
mina
  • 1,872
  • 1
  • 15
  • 20
-2
votes
2 answers

Continue not properly in loop

I have python 2.7, this is my code and when I run it, I get this error: 'continue' not properly in loop. I know that 'continue' should be inside the loop for, but I use it inside if, then what i have to do? from numpy import zeros from…
YayaYaya
  • 125
  • 2
  • 3
  • 10
-4
votes
1 answer

How to retrieve only those elements of list which matches user input?

i need to take input from user and only that group of words should return to me where the input string occurs. For example if i search for people then only those group of words where people appears should be retrieved as output. here is my sample…
Nisa
  • 227
  • 3
  • 10
1 2 3
8
9