Code Monkey home page Code Monkey logo

it-language-understading's Introduction

IT-Language-Understading

Deep Learning toolkit for Italian Natural Language Understanding

Data Source

https://github.com/UniversalDependencies/UD_Italian-ISDT

Word embedding

This model require Fasttext or another word embedding
https://fasttext.cc/docs/en/crawl-vectors.html

Word embedding to Sqlite:

Sqlite provide fast access to word vectors reducing main memory usage

usage: embed_to_sqlite.py [-args]

arguments:
  --word_embed        Word embedding file (bin)
  --output            Output sqlite database

How to use

usage: train.py [-args]

arguments:
  --train_data        Train dataset
  --test_data         Test dataset
  --json              Tags json
  --tag               Tag to predict
  --word_embed        Word embedding db
  --word_embed_size   Word embedding vectors size
  --save_model        Save model to file
  --load_model        Load model from file
  --validation        Compute accuracy (Bool)
  --eval              Tag the provided sentence

Train

UPOS tagging

Test accuracy: 93.04%
train.py --load_model="./checkpoint/upos.pt" --tag="upos" --eval="Asimov scrisse... antologia."
Sentence:

Asimov scrisse diversi racconti degni di nota, molti riguardanti i robot positronici e il Multivac racchiusi nell'antologia.

Output:

Asimov : PROPN scrisse : VERB diversi : ADJ racconti : NOUN degni : ADV di : ADP nota : NOUN , : PUNCT molti : PRON riguardanti : VERB i : DET robot : NOUN positronici : ADJ e : CCONJ il : DET Multivac : PROPN racchiusi : ADJ nell'antologia : PROPN . : PUN

XPOS tagging

Test accuracy: 90.63%
train.py --load_model="./checkpoint/xpos.pt" --tag="xpos" --eval="Asimov scrisse... antologia."
Sentence:

Asimov scrisse diversi racconti degni di nota, molti riguardanti i robot positronici e il Multivac racchiusi nell'antologia.

Output:

Asimov : SP scrisse : V diversi : A racconti : S degni : B di : E nota : S , : FF molti : B riguardanti : V i : RD robot : S positronici : A e : CC il : RD Multivac : S racchiusi : A nell'antologia : SP . : FS

it-language-understading's People

Contributors

rs9000 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

ipadawan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.