Ejemplo n.º 1
0
        string deadjify(string word)
        {
            string tmpword = word + " ";

            adj_marker = AdjMarker.of("UNKNOWN_MARKER");
            for (int j = 0; j < word.Length; j++)
            {
                if (word[j] == '(')
                {
                    if (tmpword.Substring(j, 3) == "(a)")
                    {
                        adj_marker = AdjMarker.of("ATTRIBUTIVE");
                    }
                    else if (tmpword.Substring(j, 4) == "(ip)")
                    {
                        adj_marker = AdjMarker.of("IMMED_POSTNOMINAL");
                    }
                    else if (tmpword.Substring(j, 3) == "(p)")
                    {
                        adj_marker = AdjMarker.of("PREDICATIVE");
                    }
                    return(word.Substring(0, j));
                }
            }
            return(word);
        }
Ejemplo n.º 2
0
		string deadjify(string word)
		{
			string tmpword = word + " ";
			adj_marker = AdjMarker.of("UNKNOWN_MARKER");
			for (int j = 0; j < word.Length; j++)
				if (word[j] == '(')
				{
					if (tmpword.Substring(j, 3) == "(a)")
						adj_marker = AdjMarker.of("ATTRIBUTIVE");
					else if (tmpword.Substring(j, 4) == "(ip)")
						adj_marker = AdjMarker.of("IMMED_POSTNOMINAL");
					else if (tmpword.Substring(j, 3) == "(p)")
						adj_marker = AdjMarker.of("PREDICATIVE");
					return word.Substring(0, j);
				}
			return word;
		}