Skip to content

Instantly share code, notes, and snippets.

@chezou
Last active August 29, 2015 14:03
Show Gist options
  • Select an option

  • Save chezou/2e771c246bd04c56d062 to your computer and use it in GitHub Desktop.

Select an option

Save chezou/2e771c246bd04c56d062 to your computer and use it in GitHub Desktop.
patch for kytea 0.4.6
diff --git a/src/lib/kytea.cpp b/src/lib/kytea.cpp
index 8dbae30..04324c3 100644
--- a/src/lib/kytea.cpp
+++ b/src/lib/kytea.cpp
@@ -74,6 +74,11 @@ void Kytea::addTag(typename Dictionary<Entry>::WordMap& allWords, const KyteaStr
Entry::setInDict(it->second->inDict,dict);
}
}
+
+
+template
+void Kytea::addTag<ModelTagEntry>(Dictionary<ModelTagEntry>::WordMap& allWords, const KyteaString & word, int lev, const KyteaString * tag, int dict);
+
template <class Entry>
void Kytea::addTag(typename Dictionary<Entry>::WordMap& allWords, const KyteaString & word, const KyteaTag * tag, int dict) {
addTag<Entry>(allWords,word,(tag?&tag->first:0),dict);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment