Audio and Prompts Discussions

Flat
Re: Sequitur G2P
User: tndkrj
Date: 2/19/2009 5:53 pm
Views: 286
Rating: 14

 Would anybody happen to know how to access the resulting grapheme-phoneme pair inventory(list) that is formed after creating the model?

>Do you want to get variants of transcription for each letter? I don't think such thing exists in the model itself. What do you need it for? There are easier methods to get this mapping, by hand for example.

>> Then what kind of information would the file "model-x" contain?  I thought after every model is generated, that I would be able to have access to a list(or of any form) of how each set of segments of characters would pair up with a certain phoneme.

Now I am thinking that this is not really the case.. and the model that is created is much more complex and not accessible.

I am trying to create a language model dictionary*with sequitur.
Later on after training the open vocabulary trainer with differents texts, pick out the words that were not recognized, and then try to expand the words with this  model dictionary* that I created, to match with the proper phonemes.

In other words, I wanted to redo what the creaters of this G2P software did in their paper (http://www.tc-star.org/pubblicazioni/scientific_publications/RWTH/RWTH_28_06/Bisani%20Ney%20-%20Open%20Voc%20-%20Interspeech2005.pdf)

(section 4. table)

Would you have any suggestions?

oh by the way, do you happen to know any open vocab trainer I could use to train with texts.

Thank you so much !!!

>>Are you asking me or Ken?

 you can ignore this question!!

--- (Edited on 2/19/2009 5:53 pm [GMT-0600] by tndkrj) ---

Re: Sequitur G2P
User: nsh
Date: 2/25/2009 1:34 pm
Views: 503
Rating: 10

Hey, I finally got your question


You can do very advanced things but of course you need to use Python API of Sequitur. About your particular problem, look inside the latest distribution, there is a script

makeOvModel.py


It's exactly what you need. You can actually ask authors directly, they are quite responsive.

--- (Edited on 2/25/2009 1:34 pm [GMT-0600] by nsh) ---

Re: Sequitur G2P
User: bharathi.ravishanker
Date: 7/1/2010 8:45 am
Views: 334
Rating: 8

Hi 

I am trying to install G2P when I get errors like _STRING was not declared within the scope. I am working on Windows Vista using cygwin. Thanks

--- (Edited on 7/1/2010 8:45 am [GMT-0500] by bharathi.ravishanker) ---

Re: Sequitur G2P
User: ant_sh
Date: 9/29/2011 4:22 am
Views: 190
Rating: 9

I succeeded in building sequitur g2p on Windows using MinGW and ActivePython.

General notes:

- All needed environment variables should be carefully set

- Python distutils needs minor modification since MinGW tools report loose versions, but distutils requires strict versions

- Some g2p Python source files need minor modifications since Windows Python does not have resource module, pickle under Windows needs explicit "wb" or "rb" specification

- Some g2p C++ source modification is required to link against libiberty.a MinGW static library and some UNIX signals are absent on Windows

- Python library with mingw-compatible symbols needs to be created to link Python module

Details are here:

http://pastehtml.com/view/b8vvdztjj.txt

Source files ready to be compiled under MinGW are here:

http://www.multiupload.com/Q6YQHQQ6L0

Compiled G2P works fine under Windows, it took a little more than 1 day to train model-5 for cmuict.

--- (Edited on 9/29/2011 4:22 am [GMT-0500] by ant_sh) ---

Re: Sequitur G2P
User: kmaclean
Date: 9/29/2011 8:46 am
Views: 1474
Rating: 8

thanks for the info!

--- (Edited on 9/29/2011 9:46 am [GMT-0400] by kmaclean) ---

Re: Sequitur G2P
User: Mob
Date: 11/29/2012 3:02 am
Views: 353
Rating: 6

Followed each and every step, checked and rechecked. But getting  million of errors.running build
running build_py
copying sequitur_.py -> build\lib.win32-2.7
running build_ext
building '_sequitur_' extension
swigging sequitur.i to sequitur_wrap.cpp
d:\swigwin-2.0.8\swig.exe -python -c++ -shadow -o sequitur_wrap.cpp sequitur.i
C:\MinGW\bin\gcc.exe -mdll -O -Wall -DMULTIGRAM_SIZE=2 -Id:\Python27\lib\site-packages\numpy\core/include -Id:\Python27\include -Id:\Python27\PC -c sequitur_wrap.cpp -o build\temp.win32-2.7\Release\sequitur_wrap.o -fpermissive
In file included from SequenceModel.hh:31:0,
                 from Multigram.hh:35,
                 from sequitur_wrap.cpp:3091:
Obstack.hh: In member function 'void Core::Obstack<T>::adjustChunkCapacity(size_t)':
Obstack.hh:80:2: warning: there are no arguments to '__STRING' that depend on a template parameter, so a declaration of '__STRING' must be available [-fpermissive]
Obstack.hh:81:2: warning: there are no arguments to '__STRING' that depend on a template parameter, so a declaration of '__STRING' must be available [-fpermissive]
In file included from sequitur_wrap.cpp:3091:0:
Multigram.hh: In constructor 'Multigram::Multigram(const Symbol*, const Symbol*)':
Multigram.hh:68:2: error: '__STRING' was not declared in this scope
In file included from sequitur_wrap.cpp:3246:0:
SequenceModel.cc: In member function 'void SequenceModel::Internal::buildNode(SequenceModel::Node::Index)':
SequenceModel.cc:248:2: error: '__STRING' was not declared in this scope
SequenceModel.cc: In member function 'const SequenceModel::Node* SequenceModel::initial() const':
SequenceModel.cc:301:5: error: '__STRING' was not declared in this scope
SequenceModel.cc: In member function 'const SequenceModel::Node* SequenceModel::advanced(const SequenceModel::Node*, SequenceModel::Token) const':
SequenceModel.cc:310:5: error: '__STRING' was not declared in this scope
SequenceModel.cc: In member function 'PyObject* SequenceModel::get() const':
SequenceModel.cc:522:5: error: '__STRING' was not declared in this scope
SequenceModel.cc: In member function 'PyObject* SequenceModel::getNode(const SequenceModel::Node*) const':
SequenceModel.cc:527:5: error: '__STRING' was not declared in this scope
In file included from MultigramGraph.hh:31:0,
                 from Estimation.cc:29,
                 from sequitur_wrap.cpp:3316:
Graph.hh: In member function 'void Graph::linkEdgeToSource(Graph::EdgeId, Graph::NodeId)':
Graph.hh:79:2: error: '__STRING' was not declared in this scope
In file included from Estimation.cc:29:0,
                 from sequitur_wrap.cpp:3316:
MultigramGraph.hh: In member function 'void GraphSorter::sort(Graph&, Graph::NodeId, MultigramGraph::NodeList&)':
MultigramGraph.hh:99:2: error: '__STRING' was not declared in this scope
In file included from sequitur_wrap.cpp:3316:0:
Estimation.cc: In member function 'void EstimationGraph::updateHistories(const SequenceModel*)':
Estimation.cc:115:6: error: '__STRING' was not declared in this scope
Estimation.cc: In member function 'void EvidenceStore::accumulate(SequenceModel::History, SequenceModel::Token, LogProbability)':
Estimation.cc:167:2: error: '__STRING' was not declared in this scope
In file included from sequitur_wrap.cpp:3316:0:
Estimation.cc: In member function 'void EstimationGraphBuilder::addSizeTemplate(int, int)':
Estimation.cc:411:2: error: '__STRING' was not declared in this scope
Estimation.cc:414:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Estimation.cc:414:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Estimation.cc:415:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Estimation.cc:415:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Estimation.cc: In member function 'void EstimationGraphBuilder::explore()':
Estimation.cc:518:6: error: '__STRING' was not declared in this scope
Estimation.cc: In member function 'void EstimationGraphBuilder::build(EstimationGraph*, const Sequence&, const Sequence&)':
Estimation.cc:588:2: error: '__STRING' was not declared in this scope
Estimation.cc: In member function 'void SequenceModelEstimator::init(const SequenceModel*)':
Estimation.cc:744:5: error: '__STRING' was not declared in this scope
Estimation.cc: In member function 'void SequenceModelEstimator::doKneserNeyDiscounting(const std::vector<double>&)':
Estimation.cc:777:5: error: '__STRING' was not declared in this scope
In file included from sequitur_wrap.cpp:3352:0:
Translation.cc: In member function 'void Translator::setMultigramInventory(MultigramInventory*)':
Translation.cc:56:2: error: '__STRING' was not declared in this scope
Translation.cc: In member function 'void Translator::setSequenceModel(SequenceModel*)':
Translation.cc:72:2: error: '__STRING' was not declared in this scope
Translation.cc: In member function 'bool Translator::insertOrRelax(const Translator::Hyp&)':
Translation.cc:148:6: error: '__STRING' was not declared in this scope
Translation.cc: In member function 'LogProbability Translator::translate(const Sequence&, std::vector<unsigned int>&)':
Translation.cc:168:2: error: '__STRING' was not declared in this scope
Translation.cc:208:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Translation.cc:208:80: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Translation.cc: In member function 'bool Translator::buildAndInsertOrRelax(Translator::NBestContext*, const BuildHyp&, Graph::NodeId, const BuildHyp&, SequenceModel::Token)':
Translation.cc:362:6: error: '__STRING' was not declared in this scope
Translation.cc: In member function 'Translator::NBestContext* Translator::nBestInit(const Sequence&)':
Translation.cc:369:2: error: '__STRING' was not declared in this scope
Translation.cc:399:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Translation.cc:399:80: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
sequitur_wrap.cpp: In function 'PyObject* _wrap_SequenceModel_initial(PyObject*, PyObject*)':
sequitur_wrap.cpp:3977:42: warning: invalid conversion from 'const void*' to 'void*' [-fpermissive]
d:\Python27\include/longobject.h:45:24: warning:   initializing argument 1 of 'PyObject* PyLong_FromVoidPtr(void*)' [-fpermissive]
sequitur_wrap.cpp: In function 'PyObject* _wrap_SequenceModel_advanced(PyObject*, PyObject*)':
sequitur_wrap.cpp:4033:42: warning: invalid conversion from 'const void*' to 'void*' [-fpermissive]
d:\Python27\include/longobject.h:45:24: warning:   initializing argument 1 of 'PyObject* PyLong_FromVoidPtr(void*)' [-fpermissive]
sequitur_wrap.cpp: In function 'PyObject* _wrap_SequenceModel_shortened(PyObject*, PyObject*)':
sequitur_wrap.cpp:4080:42: warning: invalid conversion from 'const void*' to 'void*' [-fpermissive]
d:\Python27\include/longobject.h:45:24: warning:   initializing argument 1 of 'PyObject* PyLong_FromVoidPtr(void*)' [-fpermissive]
sequitur_wrap.cpp: In function 'void SWIG_InitializeModule(void*)':
sequitur_wrap.cpp:6781:21: warning: statement has no effect [-Wunused-value]
In file included from Translation.cc:31:0,
                 from sequitur_wrap.cpp:3352:
PriorityQueue.hh: In member function 'void Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::insert(const typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item&) [with T_Item = Translator::Hyp, T_Key = Translator::State, T_KeyFunction = Translator::HypBase::KeyFunction, T_PriorityFunction = Translator::HypBase::PriorityFunction, T_Hash_Obj = Translator::State::Hash, typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item = Translator::Hyp]':
Translation.cc:178:19:   instantiated from here
PriorityQueue.hh:245:6: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'const Item& Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::top() const [with T_Heap = Core::TracedHeap<Translator::Hyp, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Item = Translator::Hyp]':
Translation.cc:181:26:   instantiated from here
PriorityQueue.hh:61:6: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::pop() [with T_Heap = Core::TracedHeap<Translator::Hyp, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction]':
Translation.cc:181:39:   instantiated from here
PriorityQueue.hh:67:6: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'const Item& Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::top() const [with T_Heap = Core::UntracedHeap<Translator::NBestContext::Hyp>, T_PriorityFunction = Translator::NBestContext::Hyp::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Item = Translator::NBestContext::Hyp]':
Translation.cc:294:23:   instantiated from here
PriorityQueue.hh:61:6: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::pop() [with T_Heap = Core::UntracedHeap<Translator::NBestContext::Hyp>, T_PriorityFunction = Translator::NBestContext::Hyp::PriorityFunction]':
Translation.cc:294:36:   instantiated from here
PriorityQueue.hh:67:6: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::insert(const typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item&) [with T_Item = Translator::HypBase, T_Key = Translator::State, T_KeyFunction = Translator::HypBase::KeyFunction, T_PriorityFunction = Translator::HypBase::PriorityFunction, T_Hash_Obj = Translator::State::Hash, typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item = Translator::HypBase]':
Translation.cc:381:27:   instantiated from here
PriorityQueue.hh:245:6: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'const Item& Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::top() const [with T_Heap = Core::TracedHeap<Translator::HypBase, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Item = Translator::HypBase]':
Translation.cc:384:31:   instantiated from here
PriorityQueue.hh:61:6: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::pop() [with T_Heap = Core::TracedHeap<Translator::HypBase, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction]':
Translation.cc:384:49:   instantiated from here
PriorityQueue.hh:67:6: error: '__STRING' was not declared in this scope
In file included from SequenceModel.hh:31:0,
                 from Multigram.hh:35,
                 from sequitur_wrap.cpp:3091:
Obstack.hh: In member function 'void Core::Obstack<T>::adjustChunkCapacity(size_t) [with T = unsigned int, size_t = unsigned int]':
Obstack.hh:233:2:   instantiated from 'Core::Obstack<T>::Obstack(size_t) [with T = unsigned int, size_t = unsigned int]'
SequenceModel.cc:397:35:   instantiated from here
Obstack.hh:80:2: error: '__STRING' was not declared in this scope
Obstack.hh: In member function 'Core::Obstack<T>::Chunk* Core::Obstack<T>::newChunk(Core::Obstack<T>::Item*, Core::Obstack<T>::Item*, size_t) [with T = unsigned int, Core::Obstack<T>::Item = unsigned int, size_t = unsigned int]':
Obstack.hh:238:5:   instantiated from 'Core::Obstack<T>::Obstack(size_t) [with T = unsigned int, size_t = unsigned int]'
SequenceModel.cc:397:35:   instantiated from here
Obstack.hh:200:5: error: '__STRING' was not declared in this scope
Obstack.hh: In member function 'void Core::Obstack<T>::grow(const Item&) [with T = unsigned int, Core::Obstack<T>::Item = unsigned int]':
Obstack.hh:173:2:   instantiated from 'Core::Obstack<T>::Item* Core::Obstack<T>::add(const Item&) [with T = unsigned int, Core::Obstack<T>::Item = unsigned int]'
SequenceModel.cc:398:33:   instantiated from here
Obstack.hh:140:2: error: '__STRING' was not declared in this scope
Obstack.hh: In member function 'void Core::Obstack<T>::grow0(const Item*, const Item*) [with T = unsigned int, Core::Obstack<T>::Item = unsigned int]':
Obstack.hh:189:2:   instantiated from 'Core::Obstack<T>::Item* Core::Obstack<T>::add0(const Item*, const Item*) [with T = unsigned int, Core::Obstack<T>::Item = unsigned int]'
SequenceModel.cc:406:47:   instantiated from here
Obstack.hh:160:2: error: '__STRING' was not declared in this scope
In file included from Translation.cc:31:0,
                 from sequitur_wrap.cpp:3352:
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::upHeap(Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index) [with T_Heap = Core::TracedHeap<Translator::Hyp, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index = unsigned int]':
PriorityQueue.hh:296:7:   instantiated from 'bool Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::insertOrRelax(const typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item&) [with T_Item = Translator::Hyp, T_Key = Translator::State, T_KeyFunction = Translator::HypBase::KeyFunction, T_PriorityFunction = Translator::HypBase::PriorityFunction, T_Hash_Obj = Translator::State::Hash, typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item = Translator::Hyp]'
Translation.cc:151:33:   instantiated from here
PriorityQueue.hh:110:2: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::downHeap(Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index) [with T_Heap = Core::TracedHeap<Translator::Hyp, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index = unsigned int]':
PriorityQueue.hh:70:33:   instantiated from 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::pop() [with T_Heap = Core::TracedHeap<Translator::Hyp, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction]'
Translation.cc:181:39:   instantiated from here
PriorityQueue.hh:95:2: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::upHeap(Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index) [with T_Heap = Core::UntracedHeap<Translator::NBestContext::Hyp>, T_PriorityFunction = Translator::NBestContext::Hyp::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index = unsigned int]':
PriorityQueue.hh:87:6:   instantiated from 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::insert(const Item&) [with T_Heap = Core::UntracedHeap<Translator::NBestContext::Hyp>, T_PriorityFunction = Translator::NBestContext::Hyp::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Item = Translator::NBestContext::Hyp]'
Translation.cc:288:23:   instantiated from here
PriorityQueue.hh:110:2: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::downHeap(Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index) [with T_Heap = Core::UntracedHeap<Translator::NBestContext::Hyp>, T_PriorityFunction = Translator::NBestContext::Hyp::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index = unsigned int]':
PriorityQueue.hh:70:33:   instantiated from 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::pop() [with T_Heap = Core::UntracedHeap<Translator::NBestContext::Hyp>, T_PriorityFunction = Translator::NBestContext::Hyp::PriorityFunction]'
Translation.cc:294:36:   instantiated from here
PriorityQueue.hh:95:2: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::upHeap(Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index) [with T_Heap = Core::TracedHeap<Translator::HypBase, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index = unsigned int]':
PriorityQueue.hh:296:7:   instantiated from 'bool Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::insertOrRelax(const typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item&) [with T_Item = Translator::HypBase, T_Key = Translator::State, T_KeyFunction = Translator::HypBase::KeyFunction, T_PriorityFunction = Translator::HypBase::PriorityFunction, T_Hash_Obj = Translator::State::Hash, typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item = Translator::HypBase]'
Translation.cc:360:42:   instantiated from here
PriorityQueue.hh:110:2: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::downHeap(Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index) [with T_Heap = Core::TracedHeap<Translator::HypBase, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index = unsigned int]':
PriorityQueue.hh:70:33:   instantiated from 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::pop() [with T_Heap = Core::TracedHeap<Translator::HypBase, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction]'
Translation.cc:384:49:   instantiated from here
PriorityQueue.hh:95:2: error: '__STRING' was not declared in this scope
In file included from SequenceModel.hh:31:0,
                 from Multigram.hh:35,
                 from sequitur_wrap.cpp:3091:
Obstack.hh: In member function 'void Core::Obstack<T>::Chunk::clear() [with T = unsigned int]':
Obstack.hh:87:2:   instantiated from 'void Core::Obstack<T>::deleteChunk(Core::Obstack<T>::Chunk*) [with T = unsigned int]'
Obstack.hh:117:6:   instantiated from 'Core::Obstack<T>::~Obstack() [with T = unsigned int]'
SequenceModel.cc:397:35:   instantiated from here
Obstack.hh:65:6: error: '__STRING' was not declared in this scope
In file included from Translation.cc:31:0,
                 from sequitur_wrap.cpp:3352:
PriorityQueue.hh: In member function 'void Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::put(typename Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::Precursor::Index, const typename Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::Precursor::Item&) [with T_Item = Translator::Hyp, T_Key = Translator::State, T_KeyFunction = Translator::HypBase::KeyFunction, T_Map = Core::default_unordered_map, T_Hash_Obj = Translator::State::Hash, typename Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::Precursor::Index = unsigned int, typename Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::Precursor::Item = Translator::Hyp]':
PriorityQueue.hh:116:2:   instantiated from 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::upHeap(Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index) [with T_Heap = Core::TracedHeap<Translator::Hyp, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index = unsigned int]'
PriorityQueue.hh:296:7:   instantiated from 'bool Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::insertOrRelax(const typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item&) [with T_Item = Translator::Hyp, T_Key = Translator::State, T_KeyFunction = Translator::HypBase::KeyFunction, T_PriorityFunction = Translator::HypBase::PriorityFunction, T_Hash_Obj = Translator::State::Hash, typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item = Translator::Hyp]'
Translation.cc:151:33:   instantiated from here
PriorityQueue.hh:181:6: error: '__STRING' was not declared in this scope
PriorityQueue.hh: In member function 'void Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::put(typename Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::Precursor::Index, const typename Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::Precursor::Item&) [with T_Item = Translator::HypBase, T_Key = Translator::State, T_KeyFunction = Translator::HypBase::KeyFunction, T_Map = Core::default_unordered_map, T_Hash_Obj = Translator::State::Hash, typename Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::Precursor::Index = unsigned int, typename Core::TracedHeap<T_Item, T_Key, T_KeyFunction, T_Map, T_Hash_Obj>::Precursor::Item = Translator::HypBase]':
PriorityQueue.hh:116:2:   instantiated from 'void Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::upHeap(Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index) [with T_Heap = Core::TracedHeap<Translator::HypBase, Translator::State, Translator::HypBase::KeyFunction, Core::default_unordered_map, Translator::State::Hash>, T_PriorityFunction = Translator::HypBase::PriorityFunction, Core::PriorityQueueBase<T_Heap, T_PriorityFunction>::Index = unsigned int]'
PriorityQueue.hh:296:7:   instantiated from 'bool Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::insertOrRelax(const typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item&) [with T_Item = Translator::HypBase, T_Key = Translator::State, T_KeyFunction = Translator::HypBase::KeyFunction, T_PriorityFunction = Translator::HypBase::PriorityFunction, T_Hash_Obj = Translator::State::Hash, typename Core::TracedPriorityQueue<T_Item, T_Key, T_KeyFunction, T_PriorityFunction, T_Hash_Obj>::Precursor::Item = Translator::HypBase]'
Translation.cc:360:42:   instantiated from here
PriorityQueue.hh:181:6: error: '__STRING' was not declared in this scope
In file included from SequenceModel.hh:31:0,
                 from Multigram.hh:35,
                 from sequitur_wrap.cpp:3091:
Obstack.hh: In member function 'void Core::Obstack<T>::provide_(size_t) [with T = unsigned int, size_t = unsigned int]':
Obstack.hh:97:28:   instantiated from 'void Core::Obstack<T>::provide(size_t) [with T = unsigned int, size_t = unsigned int]'
Obstack.hh:141:2:   instantiated from 'void Core::Obstack<T>::grow(const Item&) [with T = unsigned int, Core::Obstack<T>::Item = unsigned int]'
Obstack.hh:173:2:   instantiated from 'Core::Obstack<T>::Item* Core::Obstack<T>::add(const Item&) [with T = unsigned int, Core::Obstack<T>::Item = unsigned int]'
SequenceModel.cc:398:33:   instantiated from here
Obstack.hh:222:5: error: '__STRING' was not declared in this scope
error: command 'gcc' failed with exit status 1

--- (Edited on 11/29/2012 3:02 am [GMT-0600] by Visitor) ---

Re: Sequitur G2P
User: Seng
Date: 2/13/2013 8:24 am
Views: 545
Rating: 2

I try to install the sequitur by using the given command :

python setup.py install --prefix /usr/local

Then I've got the following errors....
Please help me !
------------------

running install
running build
running build_py
file sequitur_.py (for module sequitur_) not found
file sequitur_.py (for module sequitur_) not found
running build_ext
building '_sequitur_' extension
swigging sequitur.i to sequitur_wrap.cpp
swig -python -c++ -shadow -o sequitur_wrap.cpp sequitur.i
      1 [main] python2.5 35584 E:\CygwinOldProject\usr\local\bin\python2.5.exe: *** fatal error - unable to remap E:\CygwinOldProject\bin\cyggfortran-3.dll to same address as parent: 0x410000 != 0x69780000
      1 [main] python2.5 20772 fork: child 35584 - died waiting for dll loading, errno 11
error: Resource temporarily unavailable

--- (Edited on 2/13/2013 8:24 am [GMT-0600] by Visitor) ---

Re: Sequitur G2P
User: Seng
Date: 2/13/2013 9:47 am
Views: 326
Rating: 1

I have the same problem.

.....
Multigram.hh:66: error: ‘__STRING’ was not declared in this scope
..........


Did you find any solution yet?
Please let me know !
Thank so much in advance !

 

--- (Edited on 2/13/2013 9:47 am [GMT-0600] by Visitor) ---

Re: Sequitur G2P
User: nsh
Date: 2/14/2013 1:35 am
Views: 3553
Rating: 2

The issue is that _STRING macros is not supported by MINGW

You need to do something like this in Assertions.hh in order to make it compatible

#ifndef __STRING 

#define __STRING(x) #x 

#endif 

For more details see

http://old.falconpl.org/forum/viewtopic.php?p=85&sid=d76e93cb90026749364dd3c00581d1f0

--- (Edited on 2/14/2013 10:35 [GMT+0300] by nsh) ---

PreviousNext