Permalink
Browse files

Жанр как поле факта

  • Loading branch information...
alkozko committed Oct 30, 2017
1 parent 4f2154b commit 98c6869794a444d0bbdf45e09394888e4d89bda4
Showing with 4 additions and 3 deletions.
  1. +1 −0 facttypes.proto
  2. +3 −3 film.cxx
@@ -4,4 +4,5 @@ import "facttypes_base.proto";
message Film: NFactType.TFact
{
required string Name = 1;
optional string Genre = 2;
}
@@ -5,9 +5,9 @@ Title -> Word<h-reg1, quoted>;
Title -> Word<h-reg1, l-quoted, ~r-quoted> Word<~l-quoted, r-quoted>;
Title -> Word<h-reg1, l-quoted, ~r-quoted> AnyWord<~r-quoted>+ Word<~l-quoted, r-quoted>;

Genre -> Word<kwtype="жанр">;
FilmDescriptor -> Adj* Word<wff=/фильм(-.+)?/>;
FilmDescriptor -> Adj* Genre;
GenreDescr -> Word<kwtype="жанр"> | Word<wff=/фильм-.+/> | Adj "фильм";
Genre -> Adj* GenreDescr;
FilmDescriptor -> Genre interp(Film.Genre) | "фильм";

S -> Title interp(Film.Name::not_norm) Hyphen* FilmDescriptor;
S -> FilmDescriptor Title interp(Film.Name::not_norm);

0 comments on commit 98c6869

Please sign in to comment.