Permalink
Browse files

Извлекаем названия в кавычках

  • Loading branch information...
alkozko committed Oct 30, 2017
1 parent 2af89dd commit 662e97831acbf60396d2cde8f3daa11013bef3d9
Showing with 12 additions and 2 deletions.
  1. +3 −0 config.proto
  2. +6 −1 facttypes.proto
  3. +1 −1 film.cxx
  4. +2 −0 mydic.gzt
@@ -5,6 +5,9 @@ TTextMinerConfig {
Articles = [
{ Name = "фильм" }
],
Facts = [
{ Name = "Film" }
],
Input = {
File = "input\\movies.txt";
}
@@ -1,2 +1,7 @@
import "base.proto";
import "facttypes_base.proto";
import "facttypes_base.proto";

message Film: NFactType.TFact
{
required string Name = 1;
}
@@ -5,4 +5,4 @@ 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>;

S -> Title;
S -> Title interp(Film.Name);
@@ -3,6 +3,8 @@ encoding "utf8";
import "base.proto";
import "articles_base.proto";

import "facttypes.proto";

TAuxDicArticle "фильм"
{
key = { "tomita:film.cxx" type=CUSTOM }

0 comments on commit 662e978

Please sign in to comment.