Questions tagged [openfst]

OpenFst is a library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs).

OpenFst is a library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs).

48 questions
2
votes
0 answers

OpenFST Create Morphological Analyzer

I want to create a morphological analyzer (only for suffixes) for English language with OpenFST. For example, Input: computerization Output: compute + -er + -ize + -ation + Noun My question is how should I create input and output symbols using…
Ali Yeşilkanat
  • 597
  • 1
  • 7
  • 21
2
votes
1 answer

OpenFST Installation Error on Windows With pip

I want to use openfst python wrapper on my python application. When I run pip install openfst for Python 3.6 gave error as the following. C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL…
Ali Yeşilkanat
  • 597
  • 1
  • 7
  • 21
2
votes
0 answers

How to make Makefile to use openFST,Thrax and MITIE libraries using C++?

I want to use the openFst and Thrax library (both used for text matching and masking) openfst along with MITIE library github (use its tokenization functionality) in C++. But I am unable to create a Makefile for the code where I import the header…
Anurag
  • 451
  • 5
  • 4
1
vote
0 answers

Generate and Store random Path in openFST

I'm trying to use openFST to generate a very large amount of random paths and get the word and the weight of the word and store both variables in a .csv-file. But I'm struggling to figure out how to use openFST for it. I have my .fst-file and am…
Phil T.
  • 47
  • 1
  • 9
1
vote
0 answers

How to validate input according to Open FST?

There is a hacky way to do it: https://stackoverflow.com/a/54067480/3310334 But is there a more modern solution considering over two years have passed? import openfst_python as fst input_sym = fst.SymbolTable() output_sym =…
theonlygusti
  • 11,032
  • 11
  • 64
  • 119
1
vote
1 answer

What does "ERROR: fstsymbols: Saving osymbols but there are no output symbols" means and how can i solve it?

I wanted to update the language model of Kaldi model used in Vosk. I was following the Updating the language model in Vosk Adaptation I had this ERROR: fstsymbols: Saving osymbols but there are no output symbols when I try to run fstsymbols…
323 Kobby
  • 93
  • 2
  • 7
1
vote
1 answer

How can I edit the weights of a GrammarFst?

When you have a standard fst you can load it as a MutableFst and do something like: MutableArcIterator aiter(graph, state_id); aiter.Seek(position) auto arc = aiter.Value(); arc.weight =…
user2886057
  • 646
  • 1
  • 5
  • 15
1
vote
1 answer

How to link OpenFST to tensorflow custom op?

I'm trying to compile a tensorflow custom op that requires OpenFST (http://www.openfst.org/twiki/bin/view/FST/WebHome). However, I'm running into compilation errors where I run: import tensorflow as tf decoder_op =…
PC9494
  • 111
  • 8
1
vote
2 answers

MacOS Mojave: ./configure script fails when checking the archiver (ar) interface

I am running the ./configure command before building the OpenFST package, which uses autoconf. The script fails when checking for the ar interface: $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build…
Nur L
  • 791
  • 7
  • 15
1
vote
1 answer

Compiling OpenFST for iOS giving casting errors

I am trying to compile OpenFST for iOS, here is where make is failing: cd openfst-1.6.5/src/lib /Applications/Xcode.app/Contents/Developer/usr/bin/g++ -DHAVE_CONFIG_H -I./../include …
Anx8
  • 13
  • 4
1
vote
0 answers

OpenFST on Ubuntu 16.04.3 LTS error installing

Want to install OpenFST 1.6.2. Ran ./configure, make, make check. I get this output. Please advice. Thanks. fst_test.o: In function `fst::internal::CompactFstImpl >, fst::(anonymous…
Kees Koenen
  • 772
  • 2
  • 11
  • 27
1
vote
0 answers

OpenFST Transducer first steps

I'm a newbie in OpenFST and trying to create a simple transducers for words in C++. The main purpose is to make a composition of transducers and get a difference criterion for two words. The problem is that I don't know (and can't find tutorials)…
1
vote
1 answer

PyFst Install Ubuntu Error Command 'x86_64-linux-gnu-gcc' failed with exit status 1

With Python 2.7.12 and Ubuntu 16.04.2 LTS, I tried following instructions @ PyFST Setup CMU to install OpenFst and pyfst but fails with error note: candidate expects 16 arguments, 15 provided error: command 'x86_64-linux-gnu-gcc' failed with…
Justin Wilson
  • 330
  • 3
  • 17
1
vote
0 answers

Getting stuck installing OpenGrm NGram as part of OpenFST

I'm trying to install OpenGrm NGram on my Mac, but I'm getting stuck while running make. Specifically, the process gets hung on the following command: libtool: compile: g++ -DHAVE_CONFIG_H -I./../include -I/usr/local/include/ -std=c++11 -MT…
Alex Grounds
  • 256
  • 2
  • 12
1
vote
1 answer

Headers not found openfst

I tried to install OpenFst to use it with SphinxTrain and recompile it with g2p enabled, and it seem to work but I got stuck with the following error : checking fst/fstlib.h usability... no checking fst/fstlib.h presence... no checking for…