The double quote character is a precaution in case there is actually a word
such as "x0" in the corpus.
It may be a bit wasteful for a Hiero model, but it is the standard Travatar
format, so could you please use it for now? Thanks!


On Mon, Jan 6, 2014 at 7:54 PM, Philip Arthur <notifications@github.com>wrote:

> In src/include/travatar/hiero-rule-table.h:
>
> > +	void SetType(int _type) {
> > +		type = _type;
> > +	}
> > +
> > +	string GetNonTermX(int number) const {
> > +		std::ostringstream ss;
> > +		ss << "[X" << number << "]";
> > +		return ss.str();
> > +	}
> > +
> > +	void AddNonTermX(int number) {
> > +		WordId id = Dict::WID(GetNonTermX(number));
> > +		AddWord(id,1);
> > +	}
> > +
> > +	string ToString() const {
>
> is the double quote character is just for clarity or have to be included
> also?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/neubig/travatar/pull/4/files#r8662649>
> .
>