fasttext Questions

4

Solved

So I am unable to install fasttext for python on windows. I followed the methods mentioned in this issue When I enter python setup.py install, I get the following error: error: command 'C:\\Progr...
Disavow asked 4/8, 2018 at 6:13

3

I trained my unsupervised model using fasttext.train_unsupervised() function in python. I want to save it as vec file since I will use this file for pretrainedVectors parameter in fasttext.train_su...
Goodloe asked 11/10, 2019 at 8:46

3

I wanted to understand the way fastText vectors for sentences are created. According to this issue 309, the vectors for sentences are obtained by averaging the vectors for words. In order to confi...
Shrike asked 14/1, 2019 at 12:1

3

Solved

I have downloaded a .bin FastText model, and I use it with gensim as follows: model = FastText.load_fasttext_format("cc.fr.300.bin") I would like to continue the training of the model to adapt i...
Rafaelof asked 29/8, 2018 at 14:47

1

Solved

I am using gunicorn with multiple workers for my machine learning project. But the problem is when I send a train request only the worker getting the training request gets updated with the latest m...
Leger asked 4/10, 2021 at 3:55

1

I am trying to build a python docker container. Here is my dockerfile: # syntax=docker/dockerfile:1 FROM python:3.8-slim WORKDIR /src COPY req.ini req.ini RUN apt-get update RUN pip install --upgra...
Chelsiechelsy asked 2/2, 2022 at 10:28

1

I need to install a system that uses fastText onto an Amazon Linux machine. As practice, I have been trying to build fastText from source inside an Amazon Linux 2 docker image. I noticed gcc wasn't...
Kellerman asked 14/9, 2022 at 6:44

6

Solved

I am playing around with FastText, https://pypi.python.org/pypi/fasttext,which is quite similar to Word2Vec. Since it seems to be a pretty new library with not to many built in functions yet, I was...
Aerophyte asked 13/2, 2017 at 14:33

2

The documentation is a bit unclear how to save the fasttext model to disk - how do you specify a path in the argument, I tried doing so and it failed with an error Example in documentation >&g...
Fertilize asked 30/8, 2019 at 16:57

1

Solved

I am trying to make my own Fasttext embeddings so I went to official Gensim documentation and implemented this exact code below with exact 4.0 version. from gensim.models import FastText from gensi...
Buddleia asked 17/5, 2021 at 16:13

1

Solved

I'm struggling to suppress a specific warning related to fasttext. The warning is Warning : 'load_model' does not return WordVectorModel or SupervisedModel any more, but a 'FastText' object which i...
Swamy asked 24/2, 2021 at 14:56

1

Hi I have a dataframe column contains text. I want to use fasttext model to make prediction from it. I can achieve this by passing an array of text to fasttext model. import fasttext d = {'id':[1, ...
Standpoint asked 21/1, 2021 at 3:55

1

Solved

it would be really helpful for me if you would help me understand some underlying concepts about Spacy. I understand some spacy models have some predefined static vectors, for example, for the Span...
Frasch asked 7/10, 2020 at 23:18

1

Solved

I'm using some domain-specific language which have a lot of OOV words as well as some typos. I have noticed Spacy will just assign an all-zero vector for these OOV words, so I'm wondering what's th...
Biocatalyst asked 28/7, 2020 at 23:28

1

I have tried installing fasttext through conda using two channels: conda install -c conda-forge fasttext and conda install -c conda-forge/label/cf201901 fasttext as per (https://anaconda.org/co...
Astigmia asked 1/10, 2019 at 14:18

2

Are there any latest pre-trained multilingual word embeddings (multiple languages are jointly mapped to a same vector space)? I have looked at the following but they don't fit my needs: FastText...

3

Solved

To get vector of a word, I can use: model["word"] but if I want to get the vector of a sentence, I need to either sum vectors of all words or get average of all vectors. Does FastText provide ...
Farther asked 17/4, 2017 at 16:6

1

Solved

I've tried to load pre-trained FastText vectors from fastext - wiki word vectors. My code is below, and it works well. from gensim.models import FastText model = FastText.load_fasttext_format('....
Cyte asked 28/5, 2020 at 7:27

1

Solved

I trained a supervised model in FastText using the Python interface and I'm getting weird results for precision and recall. First, I trained a model: model = fasttext.train_supervised("train.t...

1

Solved

I'm trying to export the fasttext model created by gensim to a binary file. But the docs are unclear about how to achieve this. What I've done so far: model.wv.save_word2vec_format('model.bin') ...
Unawares asked 15/11, 2019 at 12:1

3

I'm interested in using tf-idf with FastText library, but have found a logical way to handle the ngrams. I have used tf-idf with SpaCy vectors already for what I have found several examples like th...
Unpleasantness asked 23/9, 2019 at 20:28

1

Solved

I am new to python and NLP. I have followed this tutorial (https://fasttext.cc/docs/en/supervised-tutorial.html) to train my fasttxt supervised model in Python. I have a csv with Text column and ...
Carolinian asked 24/9, 2019 at 13:8

5

I'm trying to use the FastText Python API https://pypi.python.org/pypi/fasttext Although, from what I've read, this API can't load the newer .bin model files at https://github.com/facebookresearch/...
Kenosis asked 28/8, 2017 at 16:13

3

I'm unable to run FastText quantization as shown in the documentation. Specifically, as shown at the bottom of the cheat sheet page: https://fasttext.cc/docs/en/cheatsheet.html When I attempt to ...
Dagan asked 20/9, 2018 at 15:30

2

I am currently using the Word2Vec model trained on Google News Corpus (from here) Since this is trained on news only until 2013, I need to updated the vectors and also add new words in the vocabula...
Jilli asked 15/9, 2017 at 16:48

© 2022 - 2024 — McMap. All rights reserved.