All Projects → artpar → Languagecrunch

artpar / Languagecrunch

LanguageCrunch NLP server docker image

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Languagecrunch

Repo 2017
Python codes in Machine Learning, NLP, Deep Learning and Reinforcement Learning with Keras and Theano
Stars: ✭ 1,123 (+299.64%)
Mutual labels:  natural-language-processing, sentiment-analysis, word2vec
Shifterator
Interpretable data visualizations for understanding how texts differ at the word level
Stars: ✭ 209 (-25.62%)
Mutual labels:  natural-language-processing, sentiment-analysis
Pytorch graph Rel
A PyTorch implementation of GraphRel
Stars: ✭ 204 (-27.4%)
Mutual labels:  natural-language-processing, relation-extraction
Malaya
Natural Language Toolkit for bahasa Malaysia, https://malaya.readthedocs.io/
Stars: ✭ 239 (-14.95%)
Mutual labels:  natural-language-processing, sentiment-analysis
Deep Math Machine Learning.ai
A blog which talks about machine learning, deep learning algorithms and the Math. and Machine learning algorithms written from scratch.
Stars: ✭ 173 (-38.43%)
Mutual labels:  natural-language-processing, word2vec
Germanwordembeddings
Toolkit to obtain and preprocess german corpora, train models using word2vec (gensim) and evaluate them with generated testsets
Stars: ✭ 189 (-32.74%)
Mutual labels:  natural-language-processing, word2vec
Reside
EMNLP 2018: RESIDE: Improving Distantly-Supervised Neural Relation Extraction using Side Information
Stars: ✭ 222 (-21%)
Mutual labels:  natural-language-processing, relation-extraction
Gensim
Topic Modelling for Humans
Stars: ✭ 12,763 (+4441.99%)
Mutual labels:  natural-language-processing, word2vec
sarcasm-detection-for-sentiment-analysis
Sarcasm Detection for Sentiment Analysis
Stars: ✭ 21 (-92.53%)
Mutual labels:  sentiment-analysis, word2vec
sentiment-analysis-of-tweets-in-russian
Sentiment analysis of tweets in Russian using Convolutional Neural Networks (CNN) with Word2Vec embeddings.
Stars: ✭ 51 (-81.85%)
Mutual labels:  sentiment-analysis, word2vec
Tacred Relation
PyTorch implementation of the position-aware attention model for relation extraction
Stars: ✭ 271 (-3.56%)
Mutual labels:  natural-language-processing, relation-extraction
Multimodal Sentiment Analysis
Attention-based multimodal fusion for sentiment analysis
Stars: ✭ 172 (-38.79%)
Mutual labels:  natural-language-processing, sentiment-analysis
Spark Nlp
State of the Art Natural Language Processing
Stars: ✭ 2,518 (+796.09%)
Mutual labels:  natural-language-processing, sentiment-analysis
Dostoevsky
Sentiment analysis library for russian language
Stars: ✭ 191 (-32.03%)
Mutual labels:  natural-language-processing, sentiment-analysis
Nlp bahasa resources
A Curated List of Dataset and Usable Library Resources for NLP in Bahasa Indonesia
Stars: ✭ 158 (-43.77%)
Mutual labels:  natural-language-processing, sentiment-analysis
Practical 1
Oxford Deep NLP 2017 course - Practical 1: word2vec
Stars: ✭ 220 (-21.71%)
Mutual labels:  natural-language-processing, word2vec
fsauor2018
基于LSTM网络与自注意力机制对中文评论进行细粒度情感分析
Stars: ✭ 36 (-87.19%)
Mutual labels:  sentiment-analysis, word2vec
Char Cnn Text Classification Pytorch
Character-level Convolutional Neural Networks for text classification in PyTorch
Stars: ✭ 147 (-47.69%)
Mutual labels:  natural-language-processing, sentiment-analysis
Deeplearning nlp
基于深度学习的自然语言处理库
Stars: ✭ 154 (-45.2%)
Mutual labels:  natural-language-processing, relation-extraction
Pytorch Sentiment Analysis
Tutorials on getting started with PyTorch and TorchText for sentiment analysis.
Stars: ✭ 3,209 (+1041.99%)
Mutual labels:  natural-language-processing, sentiment-analysis

LanguageCrunch NLP Service docker image

Docker image: https://hub.docker.com/r/artpar/languagecrunch/

Quickstart

Pull and run the Docker image, listening on port 8080:

$ docker run -it -p 8080:8080 artpar/languagecrunch

Example API call:

$ curl http://localhost:8080/nlp/parse?`echo -n "The new twitter is so weird. Seriously. Why is there a new twitter? What was wrong with the old one? Fix it now." | python -c "import urllib, sys; print(urllib.urlencode({'sentence': sys.stdin.read()}))"`

Endpoints

Sentence parse [Spacy]

GET http://localhost:8080/nlp/parse?sentence=<URL-encoded sentences>

Word lookup [Wordnet]

GET http://localhost:8080/nlp/word?word=ask&pos=v

Coreference resolution [neuralcoref]

GET http://localhost:8080/nlp/coref?sentence=<URL-encoded sentences>

Model Details

Sentiment

sentence: The new twitter is so weird. Seriously. Why is there a new twitter? What was wrong with the old one? Fix it now.

{
  "relations": [],
  "sentences": [
    {
      "sentence": "The new twitter is so weird. ",
      "sentence_type": "assertive",
      "sentiment": {
        "polarity": -0.18181818181818182,
        "subjectivity": 0.7272727272727273
      },
      "root": {
        "text": "is ",
        "orth": 2
      },
      "pos": [
        {
          "text": "The new twitter",
          "lemma": "the",
          "pos": "DET",
          "tag": "DT",
          "dep": "nsubj",
          .
          .
          .

Entity extraction

  • PERSON
  • NORP
  • FACILITY
  • ORG
  • GPE
  • LOC
  • PRODUCT
  • EVENT
  • WORK_OF_ART
  • LAW
  • LANGUAGE
  • DATE
  • TIME
  • PERCENT
  • MONEY
  • QUANTITY
  • ORDINAL
  • CARDINAL

Eg: Bill Gates, the founder of Microsoft, hosted a party last night

  "entities": [
    {
      "text": "Bill Gates",
      "label": "PERSON"
    },
    {
      "text": "Microsoft",
      "label": "ORG"
    },
    {
      "text": "last night",
      "label": "TIME"
    }
  ]
}

Sentence type detection

  • assertive
  • interrogative
  • exclamatory
  • negative

Relation extraction

Eg: Bill Gates, the founder of Microsoft, hosted a party last night

  "relations": [
    {
      "subject": "the founder",
      "object": "Microsoft",
      "relation": "ORG"
    }
  ],

Eg: Apple is looking at buying U.K. startup for $1 billion

 {
   subject: "N/A",
   object: "U.K. startup",
   relation: "GPE"
 },
 {
   subject: "buying",
   object: "$1 billion",
   relation: "MONEY"
 }
],

Word look up

  • Category of word

    • Hypernyms - colour is a hypernym of red.
  • Specific words of a category

    • Holonyms - red is a holonym of color
  • Synonyms to match

  • Examples

  • Word frames ( how the word is used )

  • Coreference resolution

  • Pronouns/references to nouns

Eg: startle, verb

  "results": [
    {
      "definition": "to stimulate to action",
      "examples": [
        "..startled him awake",
        "galvanized into action"
      ],
      "lemma_names": [
        "startle",
        "galvanize",
        "galvanise"
      ],
      "hypernyms": [
        {
          "definition": "surprise greatly; knock someone's socks off",
          "examples": [
            "I was floored when I heard that I was promoted"
          ],
          "lemma_names": [
            "shock",
            "floor",
            "ball_over",
            "blow_out_of_the_water",
            "take_aback"
          ]
        }
      ],
      "lemmas": [
        {
          "frame_strings": [
            "Somebody startle somebody",
            "Something startle somebody",
            "Somebody startle somebody into V-ing something"
          ],

Contributors

List of contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].