ispras-api 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8b450bde624a750a566588a68e03ffb3b673fcb
4
- data.tar.gz: 0f52733fd205e2423f922cff3c20a89806419046
3
+ metadata.gz: b020e4ba0262e432405832a5c7b863d4e7a138db
4
+ data.tar.gz: 4c16a369d6c20145245078f84a4914d8f7bc6d92
5
5
  SHA512:
6
- metadata.gz: 8faf7127c8e77deb7f9c3e0d70196bff96b08f58abf7c344f23524a9bbae2c146b4050ed88ea8035396b78eebaeb51223706c75c0fafb32f77a91335f3c32bae
7
- data.tar.gz: 7bef3012988ae1ca2b8dbd903ad2f60dff484cdaba362c966e371295dbe203a83aa624e51b4d4366199175a040eabc0d737174bc80b6d585a68a494b3293df8c
6
+ metadata.gz: aa4c7930cce79c114e1a875d9134aa9239767282ab2a91f4099704bdab191846ab4f1f84012ae0df4f55319b9160032f4932d6846b9c769fbc04fba14017e86e
7
+ data.tar.gz: 82a73cb7ad6325b6c236878f51069faab1ae1bc6e835ea64976ee2075dd350c06a64cbd810bbd94879a43aaccb90948f6efda9ecd8b287707cbb92bb106c298e
@@ -4,28 +4,28 @@ module TexterraNLPSpecs
4
4
  languageDetection: {
5
5
  path: 'nlp/language',
6
6
  params: {
7
- class: 'ru.ispras.texterra.core.nlp.datamodel.Language',
7
+ class: 'language',
8
8
  filtering: 'KEEPING'
9
9
  }
10
10
  },
11
11
  sentenceDetection: {
12
12
  path: 'nlp/sentence',
13
13
  params: {
14
- class: 'ru.ispras.texterra.core.nlp.datamodel.Sentence',
14
+ class: 'sentence',
15
15
  filtering: 'KEEPING'
16
16
  }
17
17
  },
18
18
  tokenization: {
19
19
  path: 'nlp/token',
20
20
  params: {
21
- class: 'ru.ispras.texterra.core.nlp.datamodel.Token',
21
+ class: 'token',
22
22
  filtering: 'KEEPING'
23
23
  }
24
24
  },
25
25
  lemmatization: {
26
26
  path: 'nlp/lemma',
27
27
  params: {
28
- class: 'ru.ispras.texterra.core.nlp.datamodel.Lemma',
28
+ class: 'lemma',
29
29
  filtering: 'KEEPING'
30
30
  }
31
31
  },
@@ -39,28 +39,28 @@ module TexterraNLPSpecs
39
39
  spellingCorrection: {
40
40
  path: 'nlp/spellingcorrection',
41
41
  params: {
42
- class: 'ru.ispras.texterra.core.nlp.datamodel.SpellingCorrection',
42
+ class: 'spelling-correction-token',
43
43
  filtering: 'KEEPING'
44
44
  }
45
45
  },
46
46
  namedEntities: {
47
47
  path: 'nlp/namedentity',
48
48
  params: {
49
- class: 'ru.ispras.texterra.core.nlp.datamodel.ne.NamedEntityToken',
49
+ class: 'named-entity',
50
50
  filtering: 'KEEPING'
51
51
  }
52
52
  },
53
53
  termDetection: {
54
54
  path: 'nlp/term',
55
55
  params: {
56
- class: 'ru.ispras.texterra.core.nlp.datamodel.Frame',
56
+ class: 'frame',
57
57
  filtering: 'KEEPING'
58
58
  }
59
59
  },
60
60
  disambiguation: {
61
61
  path: 'nlp/disambiguation',
62
62
  params: {
63
- class: 'ru.ispras.texterra.core.nlp.datamodel.DisambiguatedPhrase',
63
+ class: 'dmb-phrase',
64
64
  filtering: 'KEEPING'
65
65
  }
66
66
 
@@ -68,7 +68,7 @@ module TexterraNLPSpecs
68
68
  keyConcepts: {
69
69
  path: 'nlp/keyconcepts',
70
70
  params: {
71
- class: 'ru.ispras.texterra.core.nlp.datamodel.KeyconceptsSemanticContext',
71
+ class: 'keyconcepts-sc',
72
72
  filtering: 'KEEPING'
73
73
  }
74
74
 
@@ -84,7 +84,7 @@ module TexterraNLPSpecs
84
84
  subjectivityDetection: {
85
85
  path: 'nlp/subjectivity',
86
86
  params: {
87
- class: 'ru.ispras.texterra.core.nlp.datamodel.SentimentSubjectivity',
87
+ class: 'sentiment-subjectivity',
88
88
  filtering: 'KEEPING'
89
89
  }
90
90
 
@@ -92,7 +92,7 @@ module TexterraNLPSpecs
92
92
  polarityDetection: {
93
93
  path: 'nlp/polarity',
94
94
  params: {
95
- class: 'ru.ispras.texterra.core.nlp.datamodel.SentimentPolarity',
95
+ class: 'sentiment-polarity',
96
96
  filtering: 'KEEPING'
97
97
  }
98
98
 
@@ -123,7 +123,7 @@ module TexterraNLPSpecs
123
123
  syntaxDetection: {
124
124
  path: 'nlp/syntax',
125
125
  params: {
126
- class: 'ru.ispras.texterra.core.nlp.datamodel.syntax.SyntaxRelation',
126
+ class: 'syntax-relation',
127
127
  filtering: 'KEEPING'
128
128
  }
129
129
  }
@@ -1,12 +1,12 @@
1
1
  module Version
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- PATCH = 5
4
+ PATCH = 6
5
5
  PRE = nil
6
6
 
7
7
  YEAR = '2016'
8
- MONTH = '05'
9
- DAY = '23'
8
+ MONTH = '08'
9
+ DAY = '26'
10
10
 
11
11
  def self.to_s
12
12
  [MAJOR, MINOR, PATCH, PRE].compact.join('.')
@@ -45,9 +45,7 @@ class TestTexterraAPI < Minitest::Test
45
45
 
46
46
  def test_tweet_normalization
47
47
  assert_instance_of Array, @texterra.tweet_normalization(@en_tweet)
48
- assert_raises ApiError do
49
- @texterra.tweet_normalization(@ru_tweet)
50
- end
48
+ assert_instance_of Array, @texterra.tweet_normalization(@ru_tweet)
51
49
  end
52
50
 
53
51
  def test_syntax_detection
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ispras-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexey Laguta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-23 00:00:00.000000000 Z
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty